diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-08 11:24:00 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-09 12:12:17 +0100 |
commit | f352c3b71cbf50846c7de31046202296b38713cc (patch) | |
tree | 6b818b16da343811cf614435b1733c43df5af6ac | |
parent | 8dc4a45cc06fda29618f9f2379ed743dc0c536e3 (diff) | |
download | openembedded-core-f352c3b71cbf50846c7de31046202296b38713cc.tar.gz openembedded-core-f352c3b71cbf50846c7de31046202296b38713cc.tar.bz2 openembedded-core-f352c3b71cbf50846c7de31046202296b38713cc.zip |
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@linuxfoundation.org>
-rw-r--r-- | meta/lib/oeqa/runtime/smart.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/smart.py b/meta/lib/oeqa/runtime/smart.py index c8ba433cdd..6cdb10d631 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 |