diff options
| -rw-r--r-- | meta/lib/oeqa/runtime/decorator/package.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/lib/oeqa/runtime/decorator/package.py b/meta/lib/oeqa/runtime/decorator/package.py index 8aba3f325b..b78ac9fc38 100644 --- a/meta/lib/oeqa/runtime/decorator/package.py +++ b/meta/lib/oeqa/runtime/decorator/package.py | |||
| @@ -38,11 +38,12 @@ class OEHasPackage(OETestDecorator): | |||
| 38 | if isinstance(self.need_pkgs, str): | 38 | if isinstance(self.need_pkgs, str): |
| 39 | self.need_pkgs = [self.need_pkgs,] | 39 | self.need_pkgs = [self.need_pkgs,] |
| 40 | 40 | ||
| 41 | mlprefix = self.case.td.get("MLPREFIX") | ||
| 41 | for pkg in self.need_pkgs: | 42 | for pkg in self.need_pkgs: |
| 42 | if pkg.startswith('!'): | 43 | if pkg.startswith('!'): |
| 43 | unneed_pkgs.add(pkg[1:]) | 44 | unneed_pkgs.add(mlprefix + pkg[1:]) |
| 44 | else: | 45 | else: |
| 45 | need_pkgs.add(pkg) | 46 | need_pkgs.add(mlprefix + pkg) |
| 46 | 47 | ||
| 47 | if unneed_pkgs: | 48 | if unneed_pkgs: |
| 48 | msg = 'Checking if %s is not installed' % ', '.join(unneed_pkgs) | 49 | msg = 'Checking if %s is not installed' % ', '.join(unneed_pkgs) |
