diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-11 17:33:43 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-19 10:24:50 +0100 |
commit | bfd279de3275abbfaf3e630383ec244131e0375f (patch) | |
tree | 0d1c90461a890d21444f5d2afb13c52b302427f1 /meta/recipes-devtools/apt/apt-package.inc | |
parent | 99203edda6f0b09d817454d656c100b7a8806b18 (diff) | |
download | poky-bfd279de3275abbfaf3e630383ec244131e0375f.tar.gz |
Convert tab indentation in python functions into four-space
(From OE-Core rev: 604d46c686d06d62d5a07b9c7f4fa170f99307d8)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/apt/apt-package.inc')
-rw-r--r-- | meta/recipes-devtools/apt/apt-package.inc | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/meta/recipes-devtools/apt/apt-package.inc b/meta/recipes-devtools/apt/apt-package.inc index 736672c26c..26f3d74943 100644 --- a/meta/recipes-devtools/apt/apt-package.inc +++ b/meta/recipes-devtools/apt/apt-package.inc | |||
@@ -34,23 +34,23 @@ apt-utils-manpages="doc/apt-extracttemplates.1 \ | |||
34 | # doc/apt-ftparchive.1 | 34 | # doc/apt-ftparchive.1 |
35 | 35 | ||
36 | def get_files_apt_doc(d, bb, manpages): | 36 | def get_files_apt_doc(d, bb, manpages): |
37 | import re | 37 | import re |
38 | manpages = re.sub(r'\bdoc/(\S+)/(\S+)\.\1\.(.)\b', r'${mandir}/\1/man\3/\2.\3', manpages) | 38 | manpages = re.sub(r'\bdoc/(\S+)/(\S+)\.\1\.(.)\b', r'${mandir}/\1/man\3/\2.\3', manpages) |
39 | manpages = re.sub(r'\bdoc/(\S+)\.(.)\b', r'${mandir}/man\2/\1.\2', manpages) | 39 | manpages = re.sub(r'\bdoc/(\S+)\.(.)\b', r'${mandir}/man\2/\1.\2', manpages) |
40 | return manpages | 40 | return manpages |
41 | 41 | ||
42 | def get_commands_apt_doc(d, bb, manpages): | 42 | def get_commands_apt_doc(d, bb, manpages): |
43 | import os | 43 | import os |
44 | s = list() | 44 | s = list() |
45 | __dir_cache__ = list() | 45 | __dir_cache__ = list() |
46 | for m in manpages.split(): | 46 | for m in manpages.split(): |
47 | dest = get_files_apt_doc(d, bb, m) | 47 | dest = get_files_apt_doc(d, bb, m) |
48 | dir = os.path.dirname(dest) | 48 | dir = os.path.dirname(dest) |
49 | if not dir in __dir_cache__: | 49 | if not dir in __dir_cache__: |
50 | s.append("install -d ${D}/%s" % dir) | 50 | s.append("install -d ${D}/%s" % dir) |
51 | __dir_cache__.append(dir) | 51 | __dir_cache__.append(dir) |
52 | s.append("install -m 0644 %s ${D}/%s" % (m, dest)) | 52 | s.append("install -m 0644 %s ${D}/%s" % (m, dest)) |
53 | return "\n".join(s) | 53 | return "\n".join(s) |
54 | 54 | ||
55 | PACKAGES += "${PN}-utils ${PN}-utils-doc" | 55 | PACKAGES += "${PN}-utils ${PN}-utils-doc" |
56 | FILES_${PN} = "${bindir}/apt-cdrom ${bindir}/apt-get \ | 56 | FILES_${PN} = "${bindir}/apt-cdrom ${bindir}/apt-get \ |