]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/runtime/smart: Prune feeds to save memory
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 8 Sep 2016 10:24:00 +0000 (11:24 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 9 Sep 2016 11:12:17 +0000 (12:12 +0100)
Full package feed indexes overload a 256MB image so reduce the number of rpms
the feed. Filter to p* since we use the psplash packages and this leaves some
allarch and machine arch packages too.

[YOCTO #8771]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/runtime/smart.py

index c8ba433cdd86989455592e81ca20a0dd51434eca..6cdb10d631d77b210b506dcf092dda271e47869c 100644 (file)
@@ -87,6 +87,10 @@ class SmartRepoTest(SmartTest):
             lockfilename = oeRuntimeTest.tc.d.getVar('DEPLOY_DIR_RPM', True) + "/rpm.lock"
             lf = bb.utils.lockfile(lockfilename, False)
             oe.path.copyhardlinktree(rpm_dir, idx_path)
+            # Full indexes overload a 256MB image so reduce the number of rpms
+            # in the feed. Filter to p* since we use the psplash packages and
+            # this leaves some allarch and machine arch packages too.
+            bb.utils.remove(idx_path + "*/[a-oq-z]*.rpm")
             bb.utils.unlockfile(lf)
             index_cmds.append("%s --dbpath %s --update -q %s" % (rpm_createrepo, db_path, idx_path))
             rpm_dirs_found = True