From ef7d467083f88e2473c697b111eeea9ca5649bda Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Thu, 4 Mar 2010 14:01:37 +0200 Subject: 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. --- src/database.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/database.c') 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; -- cgit v1.2.3-60-g2f50