From 89d003f8c2e5a92655ee778f7bfa5c0e85ddbed4 Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Wed, 19 Oct 2011 11:38:23 -0400 Subject: pkg: introduce "replaces_priority" If two packages replace each other, the one with highes priority will keep the file. Additionally, if we have a package overriding another's file it's remembered and handled properly. This is essentially to allow "policy packages" which just overwrite certain (configuration) files from other package(s). --- src/package.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/package.c') diff --git a/src/package.c b/src/package.c index 76b6550..cc4c141 100644 --- a/src/package.c +++ b/src/package.c @@ -708,7 +708,7 @@ int apk_pkg_add_info(struct apk_database *db, struct apk_package *pkg, case 'c': pkg->commit = apk_blob_cstr(value); break; - case 'F': case 'M': case 'R': case 'Z': case 'r': + case 'F': case 'M': case 'R': case 'Z': case 'r': case 'q': /* installed db entries which are handled in database.c */ return 1; default: -- cgit v1.2.3-70-g09d2