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:46 +0000 |
commit | a0f5dd25a37fe3b8664c2133e80b6214559f93f6 (patch) | |
tree | 953960e9e55b9c32d9f8995a949921d739e412f2 | |
parent | 7257ded5355ffdc0fc169e7f34daeedb0b3dcd78 (diff) | |
download | openembedded-core-a0f5dd25a37fe3b8664c2133e80b6214559f93f6.tar.gz openembedded-core-a0f5dd25a37fe3b8664c2133e80b6214559f93f6.tar.bz2 openembedded-core-a0f5dd25a37fe3b8664c2133e80b6214559f93f6.tar.xz openembedded-core-a0f5dd25a37fe3b8664c2133e80b6214559f93f6.zip |
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.
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 2d92efe27..bac9de5ad 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass @@ -543,12 +543,12 @@ python write_specfile () { path = rootpath.replace(walkpath, "") for dir in dirs: # All packages own the directories their files are in... - target.append("%dir " + path + "/" + dir) + target.append('%dir "' + path + '/' + dir + '"') for file in files: - if conffiles.count(path + "/" + file): - target.append("%config " + path + "/" + file) + if conffiles.count(path + '/' + file): + target.append('%config "' + path + '/' + file + '"') else: - target.append(path + "/" + file) + target.append('"' + path + '/' + file + '"') # Prevent the prerm/postrm scripts from being run during an upgrade def wrap_uninstall(scriptvar): |