summaryrefslogtreecommitdiff
path: root/src/apk_database.h
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2019-08-10 02:08:10 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2023-11-29 22:47:44 -0600
commit78d8ecc99ea39c6564f90ba63a1ba791df25abc6 (patch)
tree0bd9dde0ee02569492a8c0d1f1ee24643ec6166a /src/apk_database.h
parent2cd22bd777a87629791416f7a807ea483ace44ce (diff)
downloadapk-tools-78d8ecc99ea39c6564f90ba63a1ba791df25abc6.tar.gz
apk-tools-78d8ecc99ea39c6564f90ba63a1ba791df25abc6.tar.bz2
apk-tools-78d8ecc99ea39c6564f90ba63a1ba791df25abc6.tar.xz
apk-tools-78d8ecc99ea39c6564f90ba63a1ba791df25abc6.zip
cache: report errors when unlinking
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 da29ce9..92a6fbd 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -277,7 +277,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, int static_cache,
+typedef int (*apk_cache_item_cb)(struct apk_database *db, int static_cache,
int dirfd, const char *name,
struct apk_package *pkg);
int apk_db_cache_foreach_item(struct apk_database *db, apk_cache_item_cb cb, int static_cache);