From 1c7e8d2617d93daac1fe0c38c0279435331bb152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Sat, 1 Jan 2011 16:58:58 +0200 Subject: pkg: dependencies to specific package checksum When package is installed from commandline, we should always install that specific instance of package (never favor repository version if it has difference identity). Otherwise we might not always end-up installing the .apk given on command line. The dependency is now against specific checksum identity (marked with >< dependency comparison). Fixes #492. --- src/info.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/info.c') diff --git a/src/info.c b/src/info.c index 1b936f0..c9dc39c 100644 --- a/src/info.c +++ b/src/info.c @@ -84,8 +84,7 @@ static int info_exists(struct info_ctx *ctx, struct apk_database *db, if (j >= name->pkgs->num) continue; - if (!(apk_version_compare_blob(*pkg->version, *dep.version) - & dep.result_mask)) + if (!apk_dep_is_satisfied(&dep, pkg)) continue; verbose_print_pkg(pkg, 0); -- cgit v1.2.3