diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-03 10:59:25 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-05 10:22:56 -0800 |
commit | 06f2f8ce0a3093973ca54b48f542f8485b666079 (patch) | |
tree | dbcfa5c491eb2e5d237aa539cb7c6e77dc07dd6f /meta/recipes-devtools/apt | |
parent | d01dadfb87cfd2284b3e849d35a35fe5df0239c4 (diff) | |
download | poky-06f2f8ce0a3093973ca54b48f542f8485b666079.tar.gz |
meta: Convert getVar/getVarFlag(xxx, 1) -> (xxx, True)
Using "1" with getVar is bad coding style and "True" is preferred.
This patch is a sed over the meta directory of the form:
sed \
-e 's:\(\.getVar([^,()]*, \)1 *):\1True):g' \
-e 's:\(\.getVarFlag([^,()]*, [^,()]*, \)1 *):\1True):g' \
-i `grep -ril getVar *`
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 | ||||
-rw-r--r-- | meta/recipes-devtools/apt/apt-package.inc | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/meta/recipes-devtools/apt/apt-native.inc b/meta/recipes-devtools/apt/apt-native.inc index 4ca0223988..4bf5105dd2 100644 --- a/meta/recipes-devtools/apt/apt-native.inc +++ b/meta/recipes-devtools/apt/apt-native.inc | |||
@@ -20,7 +20,7 @@ python do_install_config () { | |||
20 | 20 | ||
21 | data = bb.data.expand(data, d) | 21 | data = bb.data.expand(data, d) |
22 | 22 | ||
23 | outdir = os.path.join(d.getVar('D', 1), d.getVar('sysconfdir', 1), 'apt') | 23 | outdir = os.path.join(d.getVar('D', True), d.getVar('sysconfdir', True), 'apt') |
24 | if not os.path.exists(outdir): | 24 | if not os.path.exists(outdir): |
25 | os.makedirs(outdir) | 25 | os.makedirs(outdir) |
26 | outpath = os.path.join(outdir, 'apt.conf.sample') | 26 | outpath = os.path.join(outdir, 'apt.conf.sample') |
diff --git a/meta/recipes-devtools/apt/apt-package.inc b/meta/recipes-devtools/apt/apt-package.inc index d644b09745..736672c26c 100644 --- a/meta/recipes-devtools/apt/apt-package.inc +++ b/meta/recipes-devtools/apt/apt-package.inc | |||
@@ -59,15 +59,15 @@ FILES_${PN} = "${bindir}/apt-cdrom ${bindir}/apt-get \ | |||
59 | ${localstatedir} ${sysconfdir} \ | 59 | ${localstatedir} ${sysconfdir} \ |
60 | ${libdir}/dpkg" | 60 | ${libdir}/dpkg" |
61 | FILES_${PN}-utils = "${bindir}/apt-sortpkgs ${bindir}/apt-extracttemplates" | 61 | FILES_${PN}-utils = "${bindir}/apt-sortpkgs ${bindir}/apt-extracttemplates" |
62 | FILES_${PN}-doc = "${@get_files_apt_doc(d, bb, d.getVar('apt-manpages', 1))} \ | 62 | FILES_${PN}-doc = "${@get_files_apt_doc(d, bb, d.getVar('apt-manpages', True))} \ |
63 | ${docdir}/apt" | 63 | ${docdir}/apt" |
64 | FILES_${PN}-utils-doc = "${@get_files_apt_doc(d, bb, d.getVar('apt-utils-manpages', 1))}" | 64 | FILES_${PN}-utils-doc = "${@get_files_apt_doc(d, bb, d.getVar('apt-utils-manpages', True))}" |
65 | FILES_${PN}-dev = "${libdir}/libapt*.so ${includedir}" | 65 | FILES_${PN}-dev = "${libdir}/libapt*.so ${includedir}" |
66 | 66 | ||
67 | do_install () { | 67 | do_install () { |
68 | set -x | 68 | set -x |
69 | ${@get_commands_apt_doc(d, bb, d.getVar('apt-manpages', 1))} | 69 | ${@get_commands_apt_doc(d, bb, d.getVar('apt-manpages', True))} |
70 | ${@get_commands_apt_doc(d, bb, d.getVar('apt-utils-manpages', 1))} | 70 | ${@get_commands_apt_doc(d, bb, d.getVar('apt-utils-manpages', True))} |
71 | install -d ${D}${bindir} | 71 | install -d ${D}${bindir} |
72 | install -m 0755 bin/apt-cdrom ${D}${bindir}/ | 72 | install -m 0755 bin/apt-cdrom ${D}${bindir}/ |
73 | install -m 0755 bin/apt-get ${D}${bindir}/ | 73 | install -m 0755 bin/apt-get ${D}${bindir}/ |