summaryrefslogtreecommitdiff
path: root/src/database.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-05-23 15:32:32 +0300
committerTimo Teräs <timo.teras@iki.fi>2011-05-23 15:32:32 +0300
commitc5de3cdc4c86f4c1f7fcb94eb0d43bbb657bdc75 (patch)
treed10ab7fbc5b01cfad33a4c761ac56e1e7b9a8e4f /src/database.c
parent9f219e4f466806dd163a75373af85cd92eee66cf (diff)
downloadapk-tools-c5de3cdc4c86f4c1f7fcb94eb0d43bbb657bdc75.tar.gz
apk-tools-c5de3cdc4c86f4c1f7fcb94eb0d43bbb657bdc75.tar.bz2
apk-tools-c5de3cdc4c86f4c1f7fcb94eb0d43bbb657bdc75.tar.xz
apk-tools-c5de3cdc4c86f4c1f7fcb94eb0d43bbb657bdc75.zip
db: fix post-install script error message formatting
Diffstat (limited to 'src/database.c')
-rw-r--r--src/database.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database.c b/src/database.c
index bc17ff2..1d4c573 100644
--- a/src/database.c
+++ b/src/database.c
@@ -2268,8 +2268,8 @@ int apk_db_install_pkg(struct apk_database *db,
APK_SCRIPT_POST_INSTALL : APK_SCRIPT_POST_UPGRADE,
script_args);
if (r != 0) {
- apk_error("%s-%s: Failed to execute post-install/upgrade script",
- newpkg->name->name, newpkg->version);
+ apk_error(PKG_VER_FMT ": Failed to execute post-install/upgrade script",
+ PKG_VER_PRINTF(newpkg));
}
ret_r:
free(script_args[1]);