]> code.ossystems Code Review - openembedded-core.git/commitdiff
lib/oe/package_manager.py: use the bitbake APT_ARGS variable
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Mon, 13 Jan 2014 08:06:59 +0000 (10:06 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Feb 2014 11:50:26 +0000 (11:50 +0000)
This commit will revert on using the bitbake APT_ARGS variable, so users
can alter the way apt is called without needing to change it in code.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
meta/lib/oe/package_manager.py

index f84644c62dae9a8a203ee965ac35e491ceef88a5..fd86938cedd3baf780a415d0266105d1a82c0b20 100644 (file)
@@ -155,7 +155,7 @@ class DpkgPM(PackageManager):
         self.apt_conf_file = os.path.join(self.apt_conf_dir, "apt.conf")
         self.apt_get_cmd = bb.utils.which(os.getenv('PATH'), "apt-get")
 
-        self.apt_args = ['', '--no-install-recommends'][d.getVar("NO_RECOMMENDATIONS", True) == "1"]
+        self.apt_args = d.getVar("APT_ARGS", True)
 
         os.environ['APT_CONFIG'] = self.apt_conf_file