From: Ben Collins Date: Mon, 16 Oct 2000 15:17:10 +0000 (+0000) Subject: main/package.c: Hack up things so a package which X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64ed4285db6c84817cd532e197ca064c0966509e;p=dpkg main/package.c: Hack up things so a package which provides/conflicts/replaces it's own virtual can be installed (can't be removed yet, but hey...) --- diff --git a/main/packages.c b/main/packages.c index 82f95dd2..5ca0eb38 100644 --- a/main/packages.c +++ b/main/packages.c @@ -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; } }