mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-27 10:16:14 +01:00
- double quote (user specified) pathnames
This commit is contained in:
parent
52b22b19a5
commit
5a7346858a
@ -613,7 +613,7 @@ def main(opts, argv):
|
||||
print "--rsync-dest " + str(opts.rsyncsrc) + " is no absolute path (starting with '/')!"
|
||||
sys.exit(1)
|
||||
myrsyncdest = os.path.expandvars(opts.rsyncdest)
|
||||
specialcmdopts += '--rsync-src=%s --rsync-dest=%s' \
|
||||
specialcmdopts += '--rsync-src="%s" --rsync-dest="%s"' \
|
||||
% (myrsyncsrc,
|
||||
myrsyncdest)
|
||||
if opts.overlay:
|
||||
@ -622,10 +622,10 @@ def main(opts, argv):
|
||||
print "--overlay " + str(opts.overlay) + " is no valid directory!"
|
||||
sys.exit(1)
|
||||
myoverlay = os.path.abspath(myoverlay)
|
||||
specialcmdopts += '--overlay=%s' \
|
||||
specialcmdopts += '--overlay="%s"' \
|
||||
% (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'],
|
||||
build_root,
|
||||
rpmlist_filename,
|
||||
|
Loading…
Reference in New Issue
Block a user