diff options
Diffstat (limited to 'src/cache.c')
-rw-r--r-- | src/cache.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cache.c b/src/cache.c index 60c7aeb..8cee1e4 100644 --- a/src/cache.c +++ b/src/cache.c @@ -58,7 +58,8 @@ static int cache_download(struct apk_database *db) continue; apk_pkg_format_plain(pkg, APK_BLOB_BUF(item)); - apk_cache_download(db, repo->url, item, cacheitem, + apk_cache_download(db, repo->url, pkg->arch, + item, cacheitem, APK_SIGN_VERIFY_IDENTITY); } @@ -171,7 +172,7 @@ static struct apk_applet apk_cache = { "making /etc/apk/cache a symlink to the directory (on boot " "media) that will be used as package cache.", .arguments = "sync | clean | download", - .open_flags = APK_OPENF_READ|APK_OPENF_NO_SCRIPTS|APK_OPENF_NO_INSTALLED, + .open_flags = APK_OPENF_READ|APK_OPENF_NO_SCRIPTS|APK_OPENF_NO_INSTALLED|APK_OPENF_CACHE_WRITE, .main = cache_main, }; |