summaryrefslogtreecommitdiffstats
path: root/meta/classes/testimage.bbclass
diff options
context:
space:
mode:
authorYogesh Tyagi <yogesh.tyagi@intel.com>2022-07-05 10:49:11 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-07-08 00:09:42 +0100
commitaf6199215f44d369d0baf4af1230c2f7d84cac21 (patch)
tree1441b8f787d76cf6e52d3bdc1b48431eef4d4153 /meta/classes/testimage.bbclass
parent2ef273f424c62253c89e8b6bfc173575bc084c54 (diff)
downloadpoky-af6199215f44d369d0baf4af1230c2f7d84cac21.tar.gz
testimage : remove curl-ptest from rpm index
When creating rpm index for dnf runtime tests, currently all the package starting with curl are getting included. Now curl-ptest is getting enabled through another patch but we don't want rpm index to be created for curl-ptest since it fetches lot of perl dependencies. This patch removes curl-ptest from rpm index. (From OE-Core rev: 830663cee1eabdecdd473f4589a6c03b6e6c409b) Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/testimage.bbclass')
-rw-r--r--meta/classes/testimage.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index 8ffaeab284..7898223bce 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -472,6 +472,9 @@ def create_rpm_index(d):
472 package_list = glob.glob(idx_path + "*/*.rpm") 472 package_list = glob.glob(idx_path + "*/*.rpm")
473 473
474 for pkg in package_list: 474 for pkg in package_list:
475 if os.path.basename(pkg).startswith(("curl-ptest")):
476 bb.utils.remove(pkg)
477
475 if not os.path.basename(pkg).startswith(("rpm", "run-postinsts", "busybox", "bash", "update-alternatives", "libc6", "curl", "musl")): 478 if not os.path.basename(pkg).startswith(("rpm", "run-postinsts", "busybox", "bash", "update-alternatives", "libc6", "curl", "musl")):
476 bb.utils.remove(pkg) 479 bb.utils.remove(pkg)
477 480