diff options
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-rw-r--r-- | meta/classes/package_rpm.bbclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index 638cc1b488..b9f049e4b2 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass | |||
@@ -197,6 +197,8 @@ python write_specfile () { | |||
197 | if path.endswith("DEBIAN") or path.endswith("CONTROL"): | 197 | if path.endswith("DEBIAN") or path.endswith("CONTROL"): |
198 | continue | 198 | continue |
199 | path = path.replace("%", "%%%%%%%%") | 199 | path = path.replace("%", "%%%%%%%%") |
200 | path = path.replace("[", "?") | ||
201 | path = path.replace("]", "?") | ||
200 | 202 | ||
201 | # Treat all symlinks to directories as normal files. | 203 | # Treat all symlinks to directories as normal files. |
202 | # os.walk() lists them as directories. | 204 | # os.walk() lists them as directories. |
@@ -216,6 +218,8 @@ python write_specfile () { | |||
216 | if dir == "CONTROL" or dir == "DEBIAN": | 218 | if dir == "CONTROL" or dir == "DEBIAN": |
217 | continue | 219 | continue |
218 | dir = dir.replace("%", "%%%%%%%%") | 220 | dir = dir.replace("%", "%%%%%%%%") |
221 | dir = dir.replace("[", "?") | ||
222 | dir = dir.replace("]", "?") | ||
219 | # All packages own the directories their files are in... | 223 | # All packages own the directories their files are in... |
220 | target.append('%dir "' + path + '/' + dir + '"') | 224 | target.append('%dir "' + path + '/' + dir + '"') |
221 | else: | 225 | else: |
@@ -230,6 +234,8 @@ python write_specfile () { | |||
230 | if file == "CONTROL" or file == "DEBIAN": | 234 | if file == "CONTROL" or file == "DEBIAN": |
231 | continue | 235 | continue |
232 | file = file.replace("%", "%%%%%%%%") | 236 | file = file.replace("%", "%%%%%%%%") |
237 | file = file.replace("[", "?") | ||
238 | file = file.replace("]", "?") | ||
233 | if conffiles.count(path + '/' + file): | 239 | if conffiles.count(path + '/' + file): |
234 | target.append('%config "' + path + '/' + file + '"') | 240 | target.append('%config "' + path + '/' + file + '"') |
235 | else: | 241 | else: |