diff options
author | Timo Teräs <timo.teras@iki.fi> | 2022-02-01 19:44:36 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2022-02-21 10:24:05 +0200 |
commit | 9e4dd29f547c67eb6b5723f8b9e1093cd5ef9b60 (patch) | |
tree | c92ec3742d03cd5f21b66750042237fd43bc90e5 /src/app_policy.c | |
parent | be4ce40797af9056c79be4dc74ff978f1f4957e4 (diff) | |
download | apk-tools-9e4dd29f547c67eb6b5723f8b9e1093cd5ef9b60.tar.gz apk-tools-9e4dd29f547c67eb6b5723f8b9e1093cd5ef9b60.tar.bz2 apk-tools-9e4dd29f547c67eb6b5723f8b9e1093cd5ef9b60.tar.xz apk-tools-9e4dd29f547c67eb6b5723f8b9e1093cd5ef9b60.zip |
db: prepare database reading for layers
Diffstat (limited to 'src/app_policy.c')
-rw-r--r-- | src/app_policy.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/app_policy.c b/src/app_policy.c index c026337..a927a5f 100644 --- a/src/app_policy.c +++ b/src/app_policy.c @@ -13,8 +13,6 @@ #include "apk_version.h" #include "apk_print.h" -extern const char * const apk_installed_file; - static void print_policy(struct apk_database *db, const char *match, struct apk_name *name, void *ctx) { struct apk_out *out = &db->ctx->out; @@ -44,8 +42,8 @@ zlib1g policy: if (num++ == 0) apk_out(out, "%s policy:", name->name); apk_out(out, " " BLOB_FMT ":", BLOB_PRINTF(*p->version)); - if (p->pkg->ipkg != NULL) - apk_out(out, " %s", apk_installed_file); + if (p->pkg->ipkg) + apk_out(out, " %s/installed", apk_db_layer_name(p->pkg->layer)); for (i = 0; i < db->num_repos; i++) { repo = &db->repos[i]; if (!(BIT(i) & p->pkg->repos)) |