[oe-commits] [openembedded-core] 02/03: oeqa/runtime/smart: Prune feeds to save memory
git at git.openembedded.org
git at git.openembedded.org
Thu Sep 8 10:44:37 UTC 2016
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit e72f9378d3352f39390dddf6648a270be141a67f
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Thu Sep 8 11:24:00 2016 +0100
oeqa/runtime/smart: Prune feeds to save memory
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 at linuxfoundation.org>
---
meta/lib/oeqa/runtime/smart.py | 4 ++++
1 file changed, 4 insertions(+)
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
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list