diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2013-05-18 06:57:39 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2013-05-18 06:57:39 (GMT) |
commit | a3df9c75d311e406fab16ce82740078062fe5dc0 (patch) | |
tree | ab349989bbae98f29d75b1d9ee493cf5285c8e92 | |
parent | c8af3f5cdc188a6b97221ffa91931a6765e30728 (diff) |
Try to fix revisions arg passing
-rw-r--r-- | builders.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/builders.py b/builders.py index a54c978..e18548d 100644 --- a/builders.py +++ b/builders.py @@ -1,15 +1,11 @@ import json -import pipes from buildbot.process.factory import BuildFactory from buildbot.steps.source.git import Git from buildbot.steps.shell import ShellCommand -from buildbot.steps.master import MasterShellCommand from buildbot.config import BuilderConfig from buildbot.locks import MasterLock -from buildbot.process.properties import Interpolate from buildbot.steps.transfer import DirectoryUpload -from buildbot.steps.transfer import FileUpload class PullCommand(ShellCommand): @@ -24,8 +20,8 @@ class PullCommand(ShellCommand): command = ["./osbuild", "pull"] if revisions: - revisions_json = pipes.quote(json.dumps(revisions)) - command.append("--revisions=%s" % revisions_json) + revisions_json = json.dumps(revisions) + command.extend(["--revisions", revisions_json]) self.setCommand(command) |