summaryrefslogtreecommitdiff
path: root/src/apk_database.h
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2019-08-10 02:08:10 -0500
committerMax Rees <maxcrees@me.com>2020-12-29 21:29:17 -0500
commit306246f43371a70da3c39e80b40fec515357a174 (patch)
tree504102ae0bdc8a3947e11cdd5f83da35bd41675e /src/apk_database.h
parent3890035c21e40aca7d5360bfc40e4b7ab9f10c50 (diff)
downloadapk-tools-for-alpine/cache-errors.tar.gz
apk-tools-for-alpine/cache-errors.tar.bz2
apk-tools-for-alpine/cache-errors.tar.xz
apk-tools-for-alpine/cache-errors.zip
cache: report errors when unlinkingfor-alpine/cache-errors
Before: $ abuild-apk del mutt (1/3) Purging mutt (1.12.1-r0) (2/3) Purging gdbm (1.18.1-r0) (3/3) Purging libidn (1.35-r0) OK: 3752 MiB in 805 packages $ apk cache sync --purge || echo nope, sorry $ ls /home/apk-cache/*gdbm* /home/apk-cache/gdbm-1.18.1-r0.b0b17e93.apk After: $ apk cache sync --purge || echo nope, sorry ERROR: Unable to delete gdbm-1.18.1-r0.b0b17e93.apk: Permission denied nope, sorry
Diffstat (limited to 'src/apk_database.h')
-rw-r--r--src/apk_database.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/apk_database.h b/src/apk_database.h
index 3488031..81d04b0 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -254,7 +254,7 @@ int apk_cache_download(struct apk_database *db, struct apk_repository *repo,
struct apk_package *pkg, int verify, int autoupdate,
apk_progress_cb cb, void *cb_ctx);
-typedef void (*apk_cache_item_cb)(struct apk_database *db,
+typedef int (*apk_cache_item_cb)(struct apk_database *db,
int dirfd, const char *name,
struct apk_package *pkg);
int apk_db_cache_foreach_item(struct apk_database *db, apk_cache_item_cb cb);