summaryrefslogtreecommitdiffstats
path: root/libopkg/opkg_configure.c
diff options
context:
space:
mode:
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;
}