summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorSaul Wold <sgw@bigsur.com>2023-12-23 17:12:07 -0800
committerSteve Sakoman <steve@sakoman.com>2024-01-31 04:10:24 -1000
commit17b858141368531f52a0f527d8cfa9dc27ed0e38 (patch)
tree8a691acfdfbbeb487bf3fbc3dfe540faefc36ee9 /meta
parent11fbbbf59a1c428ad5d854a60882681438dad9b4 (diff)
downloadpoky-17b858141368531f52a0f527d8cfa9dc27ed0e38.tar.gz
package.py: OEHasPackage: Add MLPREFIX to packagename
FIXES [YOCTO #12342] When testing a Multilib image, the package manifest list contains the fully qualified package name which includes the Multilib Prefix. This patch adds the MLPREFIX to the package names that are passed into the @OEHasPackage() decorator to ensure the set isdisjoint() matches correctly. (From OE-Core rev: a27983e0b6bde730fe501c9931119bf18b2c376b) Signed-off-by: Saul Wold <sgw@bigsur.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> (cherry picked from commit ab87e4f92305b2a664cc473869e1615cf56e0936) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/runtime/decorator/package.py5
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)