diff options
author | Timo Teräs <timo.teras@iki.fi> | 2011-07-11 11:22:26 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2011-07-11 11:22:26 +0300 |
commit | 9cb0ce545aa900e6111df2f286e3664ed5bf4bc5 (patch) | |
tree | fc7c86cfbd6d07a1659ca76bacb12d1c1d3dd722 /src/cache.c | |
parent | 433da92e374d8924abda3b78b6652971870b9697 (diff) | |
download | apk-tools-9cb0ce545aa900e6111df2f286e3664ed5bf4bc5.tar.gz apk-tools-9cb0ce545aa900e6111df2f286e3664ed5bf4bc5.tar.bz2 apk-tools-9cb0ce545aa900e6111df2f286e3664ed5bf4bc5.tar.xz apk-tools-9cb0ce545aa900e6111df2f286e3664ed5bf4bc5.zip |
cache: return error if cache sync or download fails
fixes #666
Diffstat (limited to 'src/cache.c')
-rw-r--r-- | src/cache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cache.c b/src/cache.c index 8cee1e4..ac1fba7 100644 --- a/src/cache.c +++ b/src/cache.c @@ -58,9 +58,9 @@ static int cache_download(struct apk_database *db) continue; apk_pkg_format_plain(pkg, APK_BLOB_BUF(item)); - apk_cache_download(db, repo->url, pkg->arch, - item, cacheitem, - APK_SIGN_VERIFY_IDENTITY); + r |= apk_cache_download(db, repo->url, pkg->arch, + item, cacheitem, + APK_SIGN_VERIFY_IDENTITY); } err: |