hello,

On Fri, Apr 28, 2006 at 09:58:01PM +0200, Nicolas François wrote:
> 
> So I think there is a typo in the line:
>         if (fc_depends) thisf= (dependtry >= 3) ? 2 : 1;
> 
> Which should be:
>         if (fc_dependsversion) thisf= (dependtry >= 3) ? 2 : 1;

This will prevent installation with --force-depends. So this line should
be corrected this way:
      if (fc_depends || fc_dependsversion) thisf= (dependtry >= 3) ? 2 : 1;

(or main.c could enforce that fc_dependsversion is set when fc_depends is
set)

I'm attaching an updated patch.

Kind Regards,
-- 
Nekral
Index: src/packages.c
===================================================================
--- src/packages.c      (révision 256)
+++ src/packages.c      (copie de travail)
@@ -289,7 +289,7 @@
                   versiondescribe(&possdependee->installed.version,
                                   vdew_nonambig));
       assert(checkversion->verrel != dvr_none);
-      if (fc_depends) thisf= (dependtry >= 3) ? 2 : 1;
+      if (fc_depends || fc_dependsversion) thisf= (dependtry >= 3) ? 2 : 1;
       debug(dbg_depcondetail,"      bad version, returning %d",thisf);
       (*interestingwarnings)++;
       return thisf;

Reply via email to