diff options
-rw-r--r-- | meta/classes/package_rpm.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index 271b9ae772..8fd068525b 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass | |||
@@ -196,6 +196,7 @@ python write_specfile () { | |||
196 | path = rootpath.replace(walkpath, "") | 196 | path = rootpath.replace(walkpath, "") |
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 | 200 | ||
200 | # Treat all symlinks to directories as normal files. | 201 | # Treat all symlinks to directories as normal files. |
201 | # os.walk() lists them as directories. | 202 | # os.walk() lists them as directories. |
@@ -214,6 +215,7 @@ python write_specfile () { | |||
214 | for dir in dirs: | 215 | for dir in dirs: |
215 | if dir == "CONTROL" or dir == "DEBIAN": | 216 | if dir == "CONTROL" or dir == "DEBIAN": |
216 | continue | 217 | continue |
218 | dir = dir.replace("%", "%%%%%%%%") | ||
217 | # All packages own the directories their files are in... | 219 | # All packages own the directories their files are in... |
218 | target.append('%dir "' + path + '/' + dir + '"') | 220 | target.append('%dir "' + path + '/' + dir + '"') |
219 | else: | 221 | else: |
@@ -227,6 +229,7 @@ python write_specfile () { | |||
227 | for file in files: | 229 | for file in files: |
228 | if file == "CONTROL" or file == "DEBIAN": | 230 | if file == "CONTROL" or file == "DEBIAN": |
229 | continue | 231 | continue |
232 | file = file.replace("%", "%%%%%%%%") | ||
230 | if conffiles.count(path + '/' + file): | 233 | if conffiles.count(path + '/' + file): |
231 | target.append('%config "' + path + '/' + file + '"') | 234 | target.append('%config "' + path + '/' + file + '"') |
232 | else: | 235 | else: |