diff options
author | Timo Teras <timo.teras@iki.fi> | 2010-03-04 14:01:37 +0200 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2010-03-04 14:01:37 +0200 |
commit | ef7d467083f88e2473c697b111eeea9ca5649bda (patch) | |
tree | 81ce6aa0bcba18ca4583dcf3e6dda0b604a77f2f /src/database.c | |
parent | 4b29ea2a081d4002b7fea7e4caa0be760b3731af (diff) | |
download | apk-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.c | 5 |
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; |