diff options
Diffstat (limited to 'meta/classes/testimage.bbclass')
| -rw-r--r-- | meta/classes/testimage.bbclass | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 77291c22ce..bb688b00d5 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass | |||
| @@ -331,6 +331,7 @@ def create_index(arg): | |||
| 331 | return None | 331 | return None |
| 332 | 332 | ||
| 333 | def create_rpm_index(d): | 333 | def create_rpm_index(d): |
| 334 | import glob | ||
| 334 | # Index RPMs | 335 | # Index RPMs |
| 335 | rpm_createrepo = bb.utils.which(os.getenv('PATH'), "createrepo_c") | 336 | rpm_createrepo = bb.utils.which(os.getenv('PATH'), "createrepo_c") |
| 336 | index_cmds = [] | 337 | index_cmds = [] |
| @@ -347,9 +348,13 @@ def create_rpm_index(d): | |||
| 347 | lf = bb.utils.lockfile(lockfilename, False) | 348 | lf = bb.utils.lockfile(lockfilename, False) |
| 348 | oe.path.copyhardlinktree(rpm_dir, idx_path) | 349 | oe.path.copyhardlinktree(rpm_dir, idx_path) |
| 349 | # Full indexes overload a 256MB image so reduce the number of rpms | 350 | # Full indexes overload a 256MB image so reduce the number of rpms |
| 350 | # in the feed. Filter to r* since we use the run-postinst packages and | 351 | # in the feed by filtering to specific packages needed by the tests. |
| 351 | # this leaves some allarch and machine arch packages too. | 352 | package_list = glob.glob(idx_path + "*/*.rpm") |
| 352 | bb.utils.remove(idx_path + "*/[a-qs-z]*.rpm") | 353 | |
| 354 | for pkg in package_list: | ||
| 355 | if not os.path.basename(pkg).startswith(("rpm", "run-postinsts", "busybox", "bash", "update-alternatives", "libc6", "curl", "musl")): | ||
| 356 | bb.utils.remove(pkg) | ||
| 357 | |||
| 353 | bb.utils.unlockfile(lf) | 358 | bb.utils.unlockfile(lf) |
| 354 | cmd = '%s --update -q %s' % (rpm_createrepo, idx_path) | 359 | cmd = '%s --update -q %s' % (rpm_createrepo, idx_path) |
| 355 | 360 | ||
