1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-14 17:46:17 +01:00

- double quote (user specified) pathnames

This commit is contained in:
Marcus Huewe 2010-01-09 11:42:07 +01:00
parent 52b22b19a5
commit 5a7346858a

View File

@ -613,7 +613,7 @@ def main(opts, argv):
print "--rsync-dest " + str(opts.rsyncsrc) + " is no absolute path (starting with '/')!" print "--rsync-dest " + str(opts.rsyncsrc) + " is no absolute path (starting with '/')!"
sys.exit(1) sys.exit(1)
myrsyncdest = os.path.expandvars(opts.rsyncdest) myrsyncdest = os.path.expandvars(opts.rsyncdest)
specialcmdopts += '--rsync-src=%s --rsync-dest=%s' \ specialcmdopts += '--rsync-src="%s" --rsync-dest="%s"' \
% (myrsyncsrc, % (myrsyncsrc,
myrsyncdest) myrsyncdest)
if opts.overlay: if opts.overlay:
@ -622,10 +622,10 @@ def main(opts, argv):
print "--overlay " + str(opts.overlay) + " is no valid directory!" print "--overlay " + str(opts.overlay) + " is no valid directory!"
sys.exit(1) sys.exit(1)
myoverlay = os.path.abspath(myoverlay) myoverlay = os.path.abspath(myoverlay)
specialcmdopts += '--overlay=%s' \ specialcmdopts += '--overlay="%s"' \
% (myoverlay) % (myoverlay)
cmd = '%s --root=%s --rpmlist=%s --dist=%s %s --arch=%s %s %s %s' \ cmd = '"%s" --root="%s" --rpmlist="%s" --dist="%s" %s --arch=%s %s "%s" %s' \
% (config['build-cmd'], % (config['build-cmd'],
build_root, build_root,
rpmlist_filename, rpmlist_filename,