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.
This commit is contained in:
Christophe Priouzeau 2021-04-19 10:58:15 +02:00
parent 7b55c34159
commit 02f94289c2
1 changed files with 1 additions and 1 deletions

View File

@ -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: