summaryrefslogtreecommitdiff
path: root/src/apk_database.h
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-04-21 11:39:16 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-04-21 11:39:16 +0000
commitb0921ebac5184be14bac6548b9d91afb721da9a8 (patch)
tree8d9e2b79afce0e2e663723c021c5e5843b8acaad /src/apk_database.h
parent0dfbee9537c0eb93b92aeb0535062f9272afbc73 (diff)
downloadapk-tools-b0921ebac5184be14bac6548b9d91afb721da9a8.tar.gz
apk-tools-b0921ebac5184be14bac6548b9d91afb721da9a8.tar.bz2
apk-tools-b0921ebac5184be14bac6548b9d91afb721da9a8.tar.xz
apk-tools-b0921ebac5184be14bac6548b9d91afb721da9a8.zip
info: do not read the repositories as this tool only query the statedb
This allows you to query the state db even if you do not have write permissions in cache dir (which is needed if you have remote repositories) This should speed up things and save some memory if you have big and slow remote repositories.
Diffstat (limited to 'src/apk_database.h')
-rw-r--r--src/apk_database.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/apk_database.h b/src/apk_database.h
index db8a019..e7bfac9 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -113,6 +113,7 @@ struct apk_db_file *apk_db_file_query(struct apk_database *db,
#define APK_OPENF_WRITE 0x0001
#define APK_OPENF_CREATE 0x0002
#define APK_OPENF_EMPTY_STATE 0x0004
+#define APK_OPENF_EMPTY_REPOS 0x0008
int apk_db_open(struct apk_database *db, const char *root, unsigned int flags);
int apk_db_write_config(struct apk_database *db);