From 0497af4e81defd66d0ba4d475c47ff617b31906a Mon Sep 17 00:00:00 2001 From: pixdamix@gmail.com Date: Thu, 22 Nov 2012 04:17:50 -0500 Subject: Failed postinst script is not fatal with conf->offline_root When we have an offline root and have specified force-postinstall, attempt to run the postinstall but if it fails, just leave it in the status file as needing to run. We can issue a NOTICE this is happened but supress errors. This means the OE class doesn't have to do any further post processing of the postinstalls itself. Signed-off-by: Martin Jansa git-svn-id: http://opkg.googlecode.com/svn/trunk@639 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/opkg_configure.c') diff --git a/libopkg/opkg_configure.c b/libopkg/opkg_configure.c index 719da5a..169828d 100644 --- a/libopkg/opkg_configure.c +++ b/libopkg/opkg_configure.c @@ -35,7 +35,10 @@ opkg_configure(pkg_t *pkg) err = pkg_run_script(pkg, "postinst", "configure"); if (err) { - opkg_msg(ERROR, "%s.postinst returned %d.\n", pkg->name, err); + if (!conf->offline_root) + opkg_msg(ERROR, "%s.postinst returned %d.\n", pkg->name, err); + else + opkg_msg(NOTICE, "%s.postinst returned %d, marking as unpacked only, configuration required on target.\n", pkg->name, err); return err; } -- cgit v0.9.1