]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
testimage : remove curl-ptest from rpm index
authorYogesh Tyagi <yogesh.tyagi@intel.com>
Tue, 5 Jul 2022 02:49:11 +0000 (10:49 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Jul 2022 23:07:50 +0000 (00:07 +0100)
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.

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>
meta/classes/testimage.bbclass

index 8ffaeab2844c0029c61d54da970c1281da43decd..7898223bce6dfa80a19b96466204d00c2b12c3cc 100644 (file)
@@ -472,6 +472,9 @@ def create_rpm_index(d):
         package_list = glob.glob(idx_path + "*/*.rpm")
 
         for pkg in package_list:
+            if os.path.basename(pkg).startswith(("curl-ptest")):
+                bb.utils.remove(pkg)
+
             if not os.path.basename(pkg).startswith(("rpm", "run-postinsts", "busybox", "bash", "update-alternatives", "libc6", "curl", "musl")):
                 bb.utils.remove(pkg)