From 1c7e8d2617d93daac1fe0c38c0279435331bb152 Mon Sep 17 00:00:00 2001 From: Timo Teräs 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/search.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/search.c') diff --git a/src/search.c b/src/search.c index cb8c44d..3973552 100644 --- a/src/search.c +++ b/src/search.c @@ -53,8 +53,7 @@ static int print_rdepends(struct apk_package *pkg) for (k = 0; k < pkg0->depends->num; k++) { dep = &pkg0->depends->item[k]; if (name == dep->name && - (apk_version_compare_blob(*pkg->version, *dep->version) - & dep->result_mask)) { + apk_dep_is_satisfied(dep, pkg)) { printf(" " PKG_VER_FMT, PKG_VER_PRINTF(pkg0)); } -- cgit v1.2.3-60-g2f50