Skip to contentSkip to conversation

testimage : remove curl-ptest from rpm index

PATCH New Yogesh Tyagi 1 participant 1 message Jul 5, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta/classes/testimage.bbclass | 3 +++
 1 file changed, 3 insertions(+)
meta/classes/testimage.bbclass +3 -0
index 8ffaeab284..7898223bce 100644
@@ -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)
 
Signature · 1 line
2.36.1