summaryrefslogtreecommitdiff
path: root/src/apk_database.h
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-04-14 21:48:49 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2011-04-14 19:59:01 +0000
commitcec1fa2b0f414e980c4dc56a5cc4dc9ff48bddb8 (patch)
treef3e5a5bdef05102f7400195e4ef2ed8e8fb9a2ad /src/apk_database.h
parent762e0c717bcae8c2d0f46ba4f35232b773ac8419 (diff)
downloadapk-tools-cec1fa2b0f414e980c4dc56a5cc4dc9ff48bddb8.tar.gz
apk-tools-cec1fa2b0f414e980c4dc56a5cc4dc9ff48bddb8.tar.bz2
apk-tools-cec1fa2b0f414e980c4dc56a5cc4dc9ff48bddb8.tar.xz
apk-tools-cec1fa2b0f414e980c4dc56a5cc4dc9ff48bddb8.zip
db: Allow override arch when using --root
This is so we can do x86 --root installs on x86_64 hosts. Using --arch without --root can make great damage so we only enable it if --root is used.
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 68bba08..9b032e7 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -95,6 +95,7 @@ struct apk_db_options {
int lock_wait;
unsigned long open_flags;
char *root;
+ char *arch;
char *keys_dir;
char *repositories_file;
struct list_head repository_list;