summaryrefslogtreecommitdiffstats
path: root/libopkg/opkg_configure.c
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-07-04 19:11:12 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-07-04 23:34:10 (EDT)
commit1f351455e2cf55306a6b0d200595b9f4ef076b6b (patch)
treead6667416e4e718ea9295e1f0fd9e74860ead46a /libopkg/opkg_configure.c
parent9df48d61ef3d1654763a1142a96a7cd796f6622d (diff)
Add architecture to package control file names
Diffstat (limited to 'libopkg/opkg_configure.c')
-rw-r--r--libopkg/opkg_configure.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libopkg/opkg_configure.c b/libopkg/opkg_configure.c
index 169828d..90e9d50 100644
--- a/libopkg/opkg_configure.c
+++ b/libopkg/opkg_configure.c
@@ -15,6 +15,8 @@
General Public License for more details.
*/
+#include "config.h"
+
#include <stdio.h>
#include "sprintf_alloc.h"
@@ -36,9 +38,17 @@ opkg_configure(pkg_t *pkg)
err = pkg_run_script(pkg, "postinst", "configure");
if (err) {
if (!conf->offline_root)
+#ifdef HAVE_MULTIARCH
+ opkg_msg(ERROR, "%s:%s.postinst returned %d.\n", pkg->name, pkg->architecture, err);
+#else
opkg_msg(ERROR, "%s.postinst returned %d.\n", pkg->name, err);
+#endif
else
+#ifdef HAVE_MULTIARCH
+ opkg_msg(NOTICE, "%s:%s.postinst returned %d, marking as unpacked only, configuration required on target.\n", pkg->name, pkg->architecture, err);
+#else
opkg_msg(NOTICE, "%s.postinst returned %d, marking as unpacked only, configuration required on target.\n", pkg->name, err);
+#endif
return err;
}