summaryrefslogtreecommitdiff
path: root/src/fetch.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-07-06 08:48:25 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-07-06 08:48:25 +0000
commit4d940c7932c32ed6885c72b5a2e70101b018ad8c (patch)
tree328bde1bfdb924d82305e9d4833fda22a8266e25 /src/fetch.c
parentf503502cc08cbfbc8d7779d42877453e3a09e9ed (diff)
downloadapk-tools-4d940c7932c32ed6885c72b5a2e70101b018ad8c.tar.gz
apk-tools-4d940c7932c32ed6885c72b5a2e70101b018ad8c.tar.bz2
apk-tools-4d940c7932c32ed6885c72b5a2e70101b018ad8c.tar.xz
apk-tools-4d940c7932c32ed6885c72b5a2e70101b018ad8c.zip
fetch: respect --simulate option
Diffstat (limited to 'src/fetch.c')
-rw-r--r--src/fetch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fetch.c b/src/fetch.c
index 84f0b39..501dff1 100644
--- a/src/fetch.c
+++ b/src/fetch.c
@@ -82,6 +82,9 @@ static int fetch_package(struct fetch_ctx *fctx,
return -1;
}
+ if (apk_flags & APK_SIMULATE)
+ return 0;
+
snprintf(infile, sizeof(infile), "%s/%s-%s.apk",
db->repos[i].url, pkg->name->name, pkg->version);