summaryrefslogtreecommitdiff
path: root/src/database.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2010-03-04 14:01:37 +0200
committerTimo Teras <timo.teras@iki.fi>2010-03-04 14:01:37 +0200
commitef7d467083f88e2473c697b111eeea9ca5649bda (patch)
tree81ce6aa0bcba18ca4583dcf3e6dda0b604a77f2f /src/database.c
parent4b29ea2a081d4002b7fea7e4caa0be760b3731af (diff)
downloadapk-tools-ef7d467083f88e2473c697b111eeea9ca5649bda.tar.gz
apk-tools-ef7d467083f88e2473c697b111eeea9ca5649bda.tar.bz2
apk-tools-ef7d467083f88e2473c697b111eeea9ca5649bda.tar.xz
apk-tools-ef7d467083f88e2473c697b111eeea9ca5649bda.zip
fetch: do not include installed non-repository files in search
we do not create mirror repositories from other valid repositories, not from what was installed locally.
Diffstat (limited to 'src/database.c')
-rw-r--r--src/database.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/database.c b/src/database.c
index 7c7f8e2..ae7bbfc 100644
--- a/src/database.c
+++ b/src/database.c
@@ -1131,7 +1131,7 @@ int apk_db_open(struct apk_database *db, struct apk_db_options *dbopts)
goto ret_r;
}
- if (!(dbopts->open_flags & APK_OPENF_NO_REPOS)) {
+ if (!(dbopts->open_flags & APK_OPENF_NO_INSTALLED_REPO)) {
if (apk_db_cache_active(db)) {
bs = apk_bstream_from_file(db->cache_fd, "installed");
if (bs != NULL) {
@@ -1139,7 +1139,8 @@ int apk_db_open(struct apk_database *db, struct apk_db_options *dbopts)
bs->close(bs, NULL);
}
}
-
+ }
+ if (!(dbopts->open_flags & APK_OPENF_NO_SYS_REPOS)) {
list_for_each_entry(repo, &dbopts->repository_list, list) {
r = apk_db_add_repository(db, APK_BLOB_STR(repo->url));
rr = r ?: rr;