diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-06 08:48:25 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-06 08:48:25 +0000 |
commit | 4d940c7932c32ed6885c72b5a2e70101b018ad8c (patch) | |
tree | 328bde1bfdb924d82305e9d4833fda22a8266e25 | |
parent | f503502cc08cbfbc8d7779d42877453e3a09e9ed (diff) | |
download | apk-tools-4d940c7932c32ed6885c72b5a2e70101b018ad8c.tar.gz apk-tools-4d940c7932c32ed6885c72b5a2e70101b018ad8c.tar.bz2 apk-tools-4d940c7932c32ed6885c72b5a2e70101b018ad8c.tar.xz apk-tools-4d940c7932c32ed6885c72b5a2e70101b018ad8c.zip |
fetch: respect --simulate option
-rw-r--r-- | src/fetch.c | 3 |
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); |