mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
oeqa/runtime/decorator/package.py: remove use of strToSet
There's no need to use a series of over-generalised functions to just wrap a string in a tuple. (From OE-Core rev: 080854fe346a76f5fbe25058ba1b2425a0459b5e) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
dd6987f49b
commit
b9df97f59c
@@ -5,7 +5,6 @@
|
||||
#
|
||||
|
||||
from oeqa.core.decorator import OETestDecorator, registerDecorator
|
||||
from oeqa.core.utils.misc import strToSet
|
||||
|
||||
@registerDecorator
|
||||
class OEHasPackage(OETestDecorator):
|
||||
@@ -34,8 +33,12 @@ class OEHasPackage(OETestDecorator):
|
||||
def setUpDecorator(self):
|
||||
need_pkgs = set()
|
||||
unneed_pkgs = set()
|
||||
pkgs = strToSet(self.need_pkgs)
|
||||
for pkg in pkgs:
|
||||
|
||||
# Turn literal strings into a list so we can just iterate over it
|
||||
if isinstance(self.need_pkgs, str):
|
||||
self.need_pkgs = [self.need_pkgs,]
|
||||
|
||||
for pkg in self.need_pkgs:
|
||||
if pkg.startswith('!'):
|
||||
unneed_pkgs.add(pkg[1:])
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user