summaryrefslogtreecommitdiff
path: root/src/app_add.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2020-10-05 15:59:00 +0300
committerTimo Teräs <timo.teras@iki.fi>2020-10-09 16:09:19 +0300
commit9afb4e8fd117d7d130e5b4b75869765ecfbe2fa7 (patch)
treeb609ed342c6ec32aaf83456b44a86d2adbf98dd4 /src/app_add.c
parentb2af872fff8af2dcde8500f84843c8fa4d554579 (diff)
downloadapk-tools-9afb4e8fd117d7d130e5b4b75869765ecfbe2fa7.tar.gz
apk-tools-9afb4e8fd117d7d130e5b4b75869765ecfbe2fa7.tar.bz2
apk-tools-9afb4e8fd117d7d130e5b4b75869765ecfbe2fa7.tar.xz
apk-tools-9afb4e8fd117d7d130e5b4b75869765ecfbe2fa7.zip
make apk_force non-global, remove left-over apk_arch
ref #10682
Diffstat (limited to 'src/app_add.c')
-rw-r--r--src/app_add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app_add.c b/src/app_add.c
index f4acd22..4f2a9a6 100644
--- a/src/app_add.c
+++ b/src/app_add.c
@@ -63,7 +63,7 @@ static const struct apk_option_group optgroup_applet = {
static int non_repository_check(struct apk_database *db)
{
- if (apk_force & APK_FORCE_NON_REPOSITORY)
+ if (db->force & APK_FORCE_NON_REPOSITORY)
return 0;
if (apk_db_cache_active(db))
return 0;