summaryrefslogtreecommitdiffstats
path: root/libopkg
diff options
context:
space:
mode:
authorgraham.gower@gmail.com <graham.gower@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2010-11-22 18:48:31 (EST)
committer graham.gower@gmail.com <graham.gower@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2010-11-22 18:48:31 (EST)
commit970666583189a1f2712c1baa0b8b6a40a9b71b75 (patch)
treed820d2ccd24563206402cc9f7665255ffb440b29 /libopkg
parent78ec74138a1bc08d8c130f9e38a9d851db3b74a7 (diff)
Print the package name corresponding to a failed script.
From Sergey 'Jin' Bostandzhyan. git-svn-id: http://opkg.googlecode.com/svn/trunk@586 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg')
-rw-r--r--libopkg/pkg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libopkg/pkg.c b/libopkg/pkg.c
index 235741e..265f554 100644
--- a/libopkg/pkg.c
+++ b/libopkg/pkg.c
@@ -1299,7 +1299,8 @@ pkg_run_script(pkg_t *pkg, const char *script, const char *args)
free(cmd);
if (err) {
- opkg_msg(ERROR, "%s script returned status %d.\n", script, err);
+ opkg_msg(ERROR, "package \"%s\" %s script returned status %d.\n",
+ pkg->name, script, err);
return err;
}