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:
parent
7b55c34159
commit
02f94289c2
|
|
@ -221,7 +221,7 @@ python image_rootfs_image_clean_task(){
|
||||||
# Check the package is in the manifest of the partition
|
# Check the package is in the manifest of the partition
|
||||||
match = False
|
match = False
|
||||||
for line in contents:
|
for line in contents:
|
||||||
if re.match('^%s ' % package, line):
|
if package == line.split()[0]:
|
||||||
match = True
|
match = True
|
||||||
break
|
break
|
||||||
if not match:
|
if not match:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue