diff options
author | Timo Teräs <timo.teras@iki.fi> | 2020-10-01 14:31:41 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2020-10-01 14:31:41 +0300 |
commit | c269e9c24da57ab1b69ad6c80e9a1cb52b2b67d2 (patch) | |
tree | e70a3dceb244bf825a7c4d13283ff287ee195499 | |
parent | c538509a2a28db0ddac6fe87026da1d02a546343 (diff) | |
download | apk-tools-c269e9c24da57ab1b69ad6c80e9a1cb52b2b67d2.tar.gz apk-tools-c269e9c24da57ab1b69ad6c80e9a1cb52b2b67d2.tar.bz2 apk-tools-c269e9c24da57ab1b69ad6c80e9a1cb52b2b67d2.tar.xz apk-tools-c269e9c24da57ab1b69ad6c80e9a1cb52b2b67d2.zip |
db: check cache only if some repositories are enabled
-rw-r--r-- | src/database.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database.c b/src/database.c index 6bec7f7..04871c9 100644 --- a/src/database.c +++ b/src/database.c @@ -1706,7 +1706,7 @@ int apk_db_open(struct apk_database *db, struct apk_db_options *dbopts) apk_hash_foreach(&db->available.names, apk_db_name_rdepends, db); } - if (apk_db_cache_active(db)) + if (apk_db_cache_active(db) && (dbopts->open_flags & (APK_OPENF_NO_REPOS|APK_OPENF_NO_INSTALLED)) == 0) apk_db_cache_foreach_item(db, mark_in_cache); db->open_complete = 1; |