diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2016-09-12 01:32:07 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-14 22:22:07 +0100 |
commit | b8e2bab119be251e3a3395dc55cf25b32504272c (patch) | |
tree | 112b9935eee0cf29390d04aec0b6b9938f15be5b /meta/recipes-devtools/apt | |
parent | 32b82672033013ad89b931aa1235415db699415e (diff) | |
download | poky-b8e2bab119be251e3a3395dc55cf25b32504272c.tar.gz |
meta: cleanup d.getVar(var, 1)
(From OE-Core rev: 79fe476be233015c1c90e9c3fb4572267b5551d1)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/apt')
-rw-r--r-- | meta/recipes-devtools/apt/apt-native.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/apt/apt-native.inc b/meta/recipes-devtools/apt/apt-native.inc index 59aa04e119..9fa206efe1 100644 --- a/meta/recipes-devtools/apt/apt-native.inc +++ b/meta/recipes-devtools/apt/apt-native.inc | |||
@@ -17,7 +17,7 @@ python do_install () { | |||
17 | } | 17 | } |
18 | 18 | ||
19 | python do_install_config () { | 19 | python do_install_config () { |
20 | indir = os.path.dirname(d.getVar('FILE',1)) | 20 | indir = os.path.dirname(d.getVar('FILE', True)) |
21 | infile = open(oe.path.join(indir, 'files', 'apt.conf'), 'r') | 21 | infile = open(oe.path.join(indir, 'files', 'apt.conf'), 'r') |
22 | data = infile.read() | 22 | data = infile.read() |
23 | infile.close() | 23 | infile.close() |