From 64ed4285db6c84817cd532e197ca064c0966509e Mon Sep 17 00:00:00 2001 From: Ben Collins Date: Mon, 16 Oct 2000 15:17:10 +0000 Subject: [PATCH] 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...) --- main/packages.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; } } -- 2.39.5