summaryrefslogtreecommitdiff
path: root/src/apk_database.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-05-29 14:37:42 +0300
committerTimo Teräs <timo.teras@iki.fi>2013-05-29 14:37:42 +0300
commit035da870362494bcb4ed092e27278c290b204410 (patch)
treebd5ceffb0dfeff9debceb423bf0c97a93342f1d9 /src/apk_database.h
parent6a761c72e203cbc58a4963df9c1c12a233cf5b0a (diff)
downloadapk-tools-035da870362494bcb4ed092e27278c290b204410.tar.gz
apk-tools-035da870362494bcb4ed092e27278c290b204410.tar.bz2
apk-tools-035da870362494bcb4ed092e27278c290b204410.tar.xz
apk-tools-035da870362494bcb4ed092e27278c290b204410.zip
db, info: allow packages to install files/symlinks to root
fixes #1578
Diffstat (limited to 'src/apk_database.h')
-rw-r--r--src/apk_database.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/apk_database.h b/src/apk_database.h
index 4628c23..4ede631 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -71,6 +71,9 @@ struct apk_db_dir {
char name[];
};
+#define PKG_FILE_FMT "%s%s%s"
+#define PKG_FILE_PRINTF(dir,file) (dir)->name, (dir)->namelen ? "/" : "", (file)->name
+
struct apk_db_dir_instance {
struct hlist_node pkg_dirs_list;
struct hlist_head owned_files;