[v3,09/13] package_rpm.bbclass: Add additional install error detection

Submitted by Paul Eggleton on Dec. 12, 2012, 6:31 p.m.


Message ID d356b5ab0c9696be90b981f7bf097827518f6b73.1355337025.git.paul.eggleton@linux.intel.com
State Accepted
Commit 8b671644e1fa5cb4e4d8b6b0dc26a4b08e7485b7
Headers show

Commit Message

Paul Eggleton Dec. 12, 2012, 6:31 p.m.
From: Mark Hatle <mark.hatle@windriver.com>

There is a condition where the package will fail to install, but smart does
not capture the error.  Add the error string to the scan list.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
 meta/classes/package_rpm.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index cb8e0f4..7af1d6c 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -57,7 +57,7 @@  rpm_log_check() {
 	lf_txt="`cat $lf_path`"
-	for keyword_die in "Cannot find package" "exit 1" ERR Fail
+	for keyword_die in "unpacking of archive failed" "Cannot find package" "exit 1" ERR Fail
 		if (echo "$lf_txt" | grep -v log_check | grep "$keyword_die") >/dev/null 2>&1