diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2014-01-13 10:06:59 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-11 11:53:39 +0000 |
commit | 2979098c57d827b95c5be6d08f5d7dec4ef50599 (patch) | |
tree | 4fff69756b25bc2aeeb8722ed0ca5d092adf7369 | |
parent | 1b3e7f0e277615cb63fedc1e5d844b5e1002b9d9 (diff) | |
download | poky-2979098c57d827b95c5be6d08f5d7dec4ef50599.tar.gz |
lib/oe/package_manager.py: use the bitbake APT_ARGS variable
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.
(From OE-Core rev: ae337edc8ac441c947d1543c2800f37104a0be70)
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/lib/oe/package_manager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index f84644c62d..fd86938ced 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py | |||
@@ -155,7 +155,7 @@ class DpkgPM(PackageManager): | |||
155 | self.apt_conf_file = os.path.join(self.apt_conf_dir, "apt.conf") | 155 | self.apt_conf_file = os.path.join(self.apt_conf_dir, "apt.conf") |
156 | self.apt_get_cmd = bb.utils.which(os.getenv('PATH'), "apt-get") | 156 | self.apt_get_cmd = bb.utils.which(os.getenv('PATH'), "apt-get") |
157 | 157 | ||
158 | self.apt_args = ['', '--no-install-recommends'][d.getVar("NO_RECOMMENDATIONS", True) == "1"] | 158 | self.apt_args = d.getVar("APT_ARGS", True) |
159 | 159 | ||
160 | os.environ['APT_CONFIG'] = self.apt_conf_file | 160 | os.environ['APT_CONFIG'] = self.apt_conf_file |
161 | 161 | ||