diff options
Diffstat (limited to 'meta/classes/package.bbclass')
| -rw-r--r-- | meta/classes/package.bbclass | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 8b0ac55b76..58320dd7ef 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
| @@ -1156,6 +1156,15 @@ python package_do_filedeps() { | |||
| 1156 | rpmdeps = d.expand("${RPMDEPS}") | 1156 | rpmdeps = d.expand("${RPMDEPS}") |
| 1157 | r = re.compile(r'[<>=]+ +[^ ]*') | 1157 | r = re.compile(r'[<>=]+ +[^ ]*') |
| 1158 | 1158 | ||
| 1159 | def file_translate(file): | ||
| 1160 | ft = file.replace("@", "@at@") | ||
| 1161 | ft = ft.replace(" ", "@space@") | ||
| 1162 | ft = ft.replace("\t", "@tab@") | ||
| 1163 | ft = ft.replace("[", "@openbrace@") | ||
| 1164 | ft = ft.replace("]", "@closebrace@") | ||
| 1165 | ft = ft.replace("_", "@underscore@") | ||
| 1166 | return ft | ||
| 1167 | |||
| 1159 | # Quick routine to process the results of the rpmdeps call... | 1168 | # Quick routine to process the results of the rpmdeps call... |
| 1160 | def process_deps(pipe, pkg, provides_files, requires_files): | 1169 | def process_deps(pipe, pkg, provides_files, requires_files): |
| 1161 | provides = {} | 1170 | provides = {} |
| @@ -1173,12 +1182,7 @@ python package_do_filedeps() { | |||
| 1173 | continue | 1182 | continue |
| 1174 | 1183 | ||
| 1175 | file = f.replace(pkgdest + "/" + pkg, "") | 1184 | file = f.replace(pkgdest + "/" + pkg, "") |
| 1176 | file = file.replace("@", "@at@") | 1185 | file = file_translate(file) |
| 1177 | file = file.replace(" ", "@space@") | ||
| 1178 | file = file.replace("\t", "@tab@") | ||
| 1179 | file = file.replace("[", "@openbrace@") | ||
| 1180 | file = file.replace("]", "@closebrace@") | ||
| 1181 | file = file.replace("_", "@underscore@") | ||
| 1182 | value = line.split(":", 1)[1].strip() | 1186 | value = line.split(":", 1)[1].strip() |
| 1183 | value = r.sub(r'(\g<0>)', value) | 1187 | value = r.sub(r'(\g<0>)', value) |
| 1184 | 1188 | ||
