summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/rootfs.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-05-20 13:40:18 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-22 13:29:47 +0100
commita0cbb5ba315c8442ac9adf20236f221a71ad94f7 (patch)
tree28f2df37f1eb606b23b9267e9fee50d2f3f503a9 /meta/lib/oe/rootfs.py
parentb29ca692ba4ba5e4fb9f0ebfcf5a00735af73ee3 (diff)
downloadpoky-a0cbb5ba315c8442ac9adf20236f221a71ad94f7.tar.gz
rootfs.py: Improve rpm log_check_regex
Current regex can cause false negatives if paths in bitbake log files contain "ERR" or "Fail". do_rootfs fails with return code 1 in this case. Improved regexp is based on error messages produced by rpm. Those are found by analyzing rpm source code. [YOCTO #7789] (From OE-Core rev: 38871dc0295fb2516e1c8b1dc9948c2d2fc4d2cd) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/rootfs.py')
-rw-r--r--meta/lib/oe/rootfs.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
index 6fb749f049..ce23b237dc 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -295,7 +295,9 @@ class Rootfs(object):
295class RpmRootfs(Rootfs): 295class RpmRootfs(Rootfs):
296 def __init__(self, d, manifest_dir): 296 def __init__(self, d, manifest_dir):
297 super(RpmRootfs, self).__init__(d) 297 super(RpmRootfs, self).__init__(d)
298 self.log_check_regex = '(unpacking of archive failed|Cannot find package|exit 1|ERR|Fail)' 298 self.log_check_regex = '(unpacking of archive failed|Cannot find package'\
299 '|exit 1|ERROR: |Error: |Error |ERROR '\
300 '|Failed |Failed: |Failed$|Failed\(\d+\):)'
299 self.manifest = RpmManifest(d, manifest_dir) 301 self.manifest = RpmManifest(d, manifest_dir)
300 302
301 self.pm = RpmPM(d, 303 self.pm = RpmPM(d,