summaryrefslogtreecommitdiff
path: root/src/app_fetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/app_fetch.c')
-rw-r--r--src/app_fetch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app_fetch.c b/src/app_fetch.c
index 4704b0b..7b32ab4 100644
--- a/src/app_fetch.c
+++ b/src/app_fetch.c
@@ -168,7 +168,7 @@ static int fetch_package(apk_hash_item item, void *pctx)
}
}
- is = apk_istream_from_fd_url(urlfd, url);
+ is = apk_istream_from_fd_url(urlfd, url, apk_db_url_since(db, 0));
if (IS_ERR_OR_NULL(is)) {
r = PTR_ERR(is) ?: -EIO;
goto err;
@@ -314,7 +314,7 @@ static int fetch_main(void *pctx, struct apk_database *db, struct apk_string_arr
ctx->outdir_fd = AT_FDCWD;
if ((args->num == 1) && (strcmp(args->item[0], "coffee") == 0)) {
- if (apk_force) return cup();
+ if (db->force) return cup();
apk_message("Go and fetch your own coffee.");
return 0;
}