From 5a7346858aa857f59d148f37555af29fed3f3469 Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Sat, 9 Jan 2010 11:42:07 +0100 Subject: [PATCH] - double quote (user specified) pathnames --- osc/build.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osc/build.py b/osc/build.py index d283e5a8..41ec050a 100644 --- a/osc/build.py +++ b/osc/build.py @@ -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,