Currently, If a package installed by dnf has the word "exit" followed by
"100%" in the log file, the rpm/rootfs.py regex matches a failure thanks to
the "exit 1"00%, such as the following:

[682/932] perl-module-test2-plugin-exit 100% |   0.0   B/s |   8.5 KiB |  00m00s

Add a `\b` to ensure there's a word boundary to prevent the error from 
happening.

Signed-off-by: Adam Duskett <[email protected]>
---
v1 -> v5: Add this patch to the series

 meta/lib/oe/package_manager/rpm/rootfs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oe/package_manager/rpm/rootfs.py 
b/meta/lib/oe/package_manager/rpm/rootfs.py
index 3ba5396320..698685c067 100644
--- a/meta/lib/oe/package_manager/rpm/rootfs.py
+++ b/meta/lib/oe/package_manager/rpm/rootfs.py
@@ -14,7 +14,7 @@ class PkgRootfs(Rootfs):
     def __init__(self, d, manifest_dir, progress_reporter=None, 
logcatcher=None):
         super(PkgRootfs, self).__init__(d, progress_reporter, logcatcher)
         self.log_check_regex = r'(unpacking of archive failed|Cannot find 
package'\
-                               r'|exit 1|ERROR: |Error: |Error |ERROR '\
+                               r'|exit 1\b|ERROR: |Error: |Error |ERROR '\
                                r'|Failed |Failed: |Failed$|Failed\(\d+\):)'
 
         self.manifest = PkgManifest(d, manifest_dir)
-- 
2.53.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#231673): 
https://lists.openembedded.org/g/openembedded-core/message/231673
Mute This Topic: https://lists.openembedded.org/mt/117958787/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to