diff options
author | Chantry Xavier <shiningxc@gmail.com> | 2008-04-17 21:02:39 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-04-17 21:28:08 +0200 |
commit | 5e375aa9d387b2ef703dd35f60df1daad6a40237 (patch) | |
tree | ea63bdbf7ee1ffa2247b1925e320c97af181ef8a /pactest | |
parent | 0d8affeac01f40470c50e22cf721bd7a9b12050a (diff) | |
download | pacman-5e375aa9d387b2ef703dd35f60df1daad6a40237.tar.gz pacman-5e375aa9d387b2ef703dd35f60df1daad6a40237.tar.xz |
pactest: Add quotes for directory with whitespaces
Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'pactest')
-rwxr-xr-x | pactest/pmtest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pactest/pmtest.py b/pactest/pmtest.py index be36914b..cd532dcf 100755 --- a/pactest/pmtest.py +++ b/pactest/pmtest.py @@ -200,7 +200,7 @@ class pmtest: cmd.append("libtool gdb --args") if pacman["valgrind"]: cmd.append("valgrind --tool=memcheck --leak-check=full --show-reachable=yes") - cmd.append("%s --config=%s --root=%s --dbpath=%s --cachedir=%s" \ + cmd.append("\"%s\" --config=\"%s\" --root=\"%s\" --dbpath=\"%s\" --cachedir=\"%s\"" \ % (pacman["bin"], os.path.join(self.root, PACCONF), self.root, @@ -212,7 +212,7 @@ class pmtest: cmd.append("--debug=%s" % pacman["debug"]) cmd.append("%s" % self.args) if not pacman["gdb"] and not pacman["valgrind"] and not pacman["nolog"]: - cmd.append(">%s 2>&1" % os.path.join(self.root, LOGFILE)) + cmd.append(">\"%s\" 2>&1" % os.path.join(self.root, LOGFILE)) vprint("\trunning: %s" % " ".join(cmd)) # Change to the tmp dir before running pacman, so that local package |