summaryrefslogtreecommitdiff
path: root/src/package.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-10-19 11:38:23 -0400
committerTimo Teräs <timo.teras@iki.fi>2011-10-19 11:38:23 -0400
commit89d003f8c2e5a92655ee778f7bfa5c0e85ddbed4 (patch)
tree371afd4062af10e81e8d909abc5613ee964d100a /src/package.c
parenta787038dbe643a7169a4b3610e104ac94b175ed0 (diff)
downloadapk-tools-89d003f8c2e5a92655ee778f7bfa5c0e85ddbed4.tar.gz
apk-tools-89d003f8c2e5a92655ee778f7bfa5c0e85ddbed4.tar.bz2
apk-tools-89d003f8c2e5a92655ee778f7bfa5c0e85ddbed4.tar.xz
apk-tools-89d003f8c2e5a92655ee778f7bfa5c0e85ddbed4.zip
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).
Diffstat (limited to 'src/package.c')
-rw-r--r--src/package.c2
1 files changed, 1 insertions, 1 deletions
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: