diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2012-01-17 09:47:49 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-17 16:20:54 +0000 |
commit | 5724ee9c3a99519fea96446638910b727b89898d (patch) | |
tree | 7678c93722ae6976bed9857ec693c03f7d73548b /meta | |
parent | 39a991880a2abe413e58ebcc033b17c52006615d (diff) | |
download | poky-5724ee9c3a99519fea96446638910b727b89898d.tar.gz |
package_rpm.bbclass: Add support for filenames with spaces
Files with spaces must be fully quoted in an RPM spec file. It was
easier to quote all file paths, then to do it selectively.
(From OE-Core rev: a0f5dd25a37fe3b8664c2133e80b6214559f93f6)
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/package_rpm.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index 2d92efe272..bac9de5ad4 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass | |||
@@ -543,12 +543,12 @@ python write_specfile () { | |||
543 | path = rootpath.replace(walkpath, "") | 543 | path = rootpath.replace(walkpath, "") |
544 | for dir in dirs: | 544 | for dir in dirs: |
545 | # All packages own the directories their files are in... | 545 | # All packages own the directories their files are in... |
546 | target.append("%dir " + path + "/" + dir) | 546 | target.append('%dir "' + path + '/' + dir + '"') |
547 | for file in files: | 547 | for file in files: |
548 | if conffiles.count(path + "/" + file): | 548 | if conffiles.count(path + '/' + file): |
549 | target.append("%config " + path + "/" + file) | 549 | target.append('%config "' + path + '/' + file + '"') |
550 | else: | 550 | else: |
551 | target.append(path + "/" + file) | 551 | target.append('"' + path + '/' + file + '"') |
552 | 552 | ||
553 | # Prevent the prerm/postrm scripts from being run during an upgrade | 553 | # Prevent the prerm/postrm scripts from being run during an upgrade |
554 | def wrap_uninstall(scriptvar): | 554 | def wrap_uninstall(scriptvar): |