summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/apt/apt-package.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/apt/apt-package.inc')
-rw-r--r--meta/recipes-devtools/apt/apt-package.inc30
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
36def get_files_apt_doc(d, bb, manpages): 36def 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
42def get_commands_apt_doc(d, bb, manpages): 42def 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
55PACKAGES += "${PN}-utils ${PN}-utils-doc" 55PACKAGES += "${PN}-utils ${PN}-utils-doc"
56FILES_${PN} = "${bindir}/apt-cdrom ${bindir}/apt-get \ 56FILES_${PN} = "${bindir}/apt-cdrom ${bindir}/apt-get \