]> err.no Git - dpkg/commitdiff
main/package.c: Hack up things so a package which
authorBen Collins <bcollins@debian.org>
Mon, 16 Oct 2000 15:17:10 +0000 (15:17 +0000)
committerBen Collins <bcollins@debian.org>
Mon, 16 Oct 2000 15:17:10 +0000 (15:17 +0000)
provides/conflicts/replaces it's own virtual can be installed (can't
be removed yet, but hey...)

main/packages.c

index 82f95dd2d250b07e3321c723506dff43aa1a4cd4..5ca0eb380895280cbd105a6d5a56a6fcc95eebad 100644 (file)
@@ -424,6 +424,13 @@ int dependencies_ok(struct pkginfo *pkg, struct pkginfo *removing,
              thisf= deppossi_ok_found(provider->up->up,pkg,removing,possi->ed,
                                       &matched,possi,&interestingwarnings,&oemsgs,provider);
            }
+           if (thisf == 1 && provider->up->up == pkg && !removing) {
+             /* IOW, if the pkg satisfies it's own dep (via a provide),
+              * then we let it pass, even if it isn't configured yet
+              * (duh, we're installing it!) -- Ben
+              */
+              thisf = 3;
+           }
             if (thisf > found) found= thisf;
           }
         }