summaryrefslogtreecommitdiff
path: root/src/database.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-10-02 16:06:10 +0300
committerTimo Teräs <timo.teras@iki.fi>2013-10-02 16:06:10 +0300
commita6c4103df550ec7c1d99af6a5573c2e3f946b408 (patch)
treeef8ef62eeddb3679390db478f862ddd9e7133dd8 /src/database.c
parentaa345aab59f0aab21000f016abb8b8a3b093c8f8 (diff)
downloadapk-tools-a6c4103df550ec7c1d99af6a5573c2e3f946b408.tar.gz
apk-tools-a6c4103df550ec7c1d99af6a5573c2e3f946b408.tar.bz2
apk-tools-a6c4103df550ec7c1d99af6a5573c2e3f946b408.tar.xz
apk-tools-a6c4103df550ec7c1d99af6a5573c2e3f946b408.zip
db: allow using cached packages with --no-network
Diffstat (limited to 'src/database.c')
-rw-r--r--src/database.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database.c b/src/database.c
index afe0a8c..9eadb44 100644
--- a/src/database.c
+++ b/src/database.c
@@ -2151,7 +2151,7 @@ int apk_db_add_repository(apk_database_t _db, apk_blob_t _repository)
db->available_repos &= ~BIT(repo_num);
r = 0;
} else {
- db->repo_tags[tag_id].allowed_repos |= BIT(repo_num) & db->available_repos;
+ db->repo_tags[tag_id].allowed_repos |= BIT(repo_num);
}
return 0;