1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 17:19:20 +00:00

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>
This commit is contained in:
Mark Hatle
2012-01-17 09:47:49 -06:00
committed by Richard Purdie
parent 39a991880a
commit 5724ee9c3a
+4 -4
View File
@@ -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):