summaryrefslogtreecommitdiff
path: root/src/fetch.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/fetch.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/fetch.c')
-rw-r--r--src/fetch.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/fetch.c b/src/fetch.c
index f827d95..67b3322 100644
--- a/src/fetch.c
+++ b/src/fetch.c
@@ -240,10 +240,12 @@ static struct apk_option fetch_options[] = {
static struct apk_applet apk_fetch = {
.name = "fetch",
- .help = "Download PACKAGEs from repositories to a local directory from "
- "which a local mirror repository can be created.",
+ .help = "Download PACKAGEs from global repositories to a local "
+ "directory from which a local mirror repository can be "
+ "created.",
.arguments = "PACKAGE...",
- .open_flags = APK_OPENF_READ|APK_OPENF_NO_STATE,
+ .open_flags = APK_OPENF_READ | APK_OPENF_NO_STATE |
+ APK_OPENF_NO_INSTALLED_REPO,
.context_size = sizeof(struct fetch_ctx),
.num_options = ARRAY_SIZE(fetch_options),
.options = fetch_options,