* [PATCH] oeqa/runtime/smart: Prune feeds to save memory
@ 2016-09-08 10:24 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2016-09-08 10:24 UTC (permalink / raw)
To: openembedded-core
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>
diff --git a/meta/lib/oeqa/runtime/smart.py b/meta/lib/oeqa/runtime/smart.py
index c8ba433..6cdb10d 100644
--- a/meta/lib/oeqa/runtime/smart.py
+++ b/meta/lib/oeqa/runtime/smart.py
@@ -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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-09-08 10:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-08 10:24 [PATCH] oeqa/runtime/smart: Prune feeds to save memory Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox