]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
opkg: Pass '--volatile-cache' when building rootfs pbarker/opkg-v0.3.0-rc2
authorPaul Barker <paul@paulbarker.me.uk>
Wed, 24 Sep 2014 11:03:33 +0000 (13:03 +0200)
committerPaul Barker <paul@paulbarker.me.uk>
Sun, 1 Feb 2015 13:52:25 +0000 (13:52 +0000)
The '--volatile-cache' argument is passed to opkg when building the root
filesystem to ensure that the cache of downloaded packages is cleared out when
opkg finishes installing packages. Without this option, stale packages and links
may be left in the cache, increasing the size of the generated filesystem.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
meta/lib/oe/package_manager.py

index 96fae5787265d83ede2eb4d618be5a9f90605d41..2eda48483e532fa2947e39521a2bb47088c5a122 100644 (file)
@@ -1189,7 +1189,7 @@ class OpkgPM(PackageManager):
         self.deploy_dir = self.d.getVar("DEPLOY_DIR_IPK", True)
         self.deploy_lock_file = os.path.join(self.deploy_dir, "deploy.lock")
         self.opkg_cmd = bb.utils.which(os.getenv('PATH'), "opkg")
-        self.opkg_args = "-f %s -o %s " % (self.config_file, target_rootfs)
+        self.opkg_args = "-f %s -o %s --volatile-cache " % (self.config_file, target_rootfs)
         self.opkg_args += self.d.getVar("OPKG_ARGS", True)
 
         opkg_lib_dir = self.d.getVar('OPKGLIBDIR', True)