From 02f94289c2378eb55eb8c5d2cf96af8078900e0d Mon Sep 17 00:00:00 2001 From: Christophe Priouzeau Date: Mon, 19 Apr 2021 10:58:15 +0200 Subject: [PATCH] CLASSES: fix issue when checking packages name with "strange" characters When package name have characters having a specific meaning in regex (e.g. foo-c++_1.0.deb) then it will trigger a Python error. --- classes/st-partitions-image.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/st-partitions-image.bbclass b/classes/st-partitions-image.bbclass index da77d2c..c9247a3 100644 --- a/classes/st-partitions-image.bbclass +++ b/classes/st-partitions-image.bbclass @@ -221,7 +221,7 @@ python image_rootfs_image_clean_task(){ # Check the package is in the manifest of the partition match = False for line in contents: - if re.match('^%s ' % package, line): + if package == line.split()[0]: match = True break if not match: