aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-03-19 18:56:33 +0100
committerGuido Günther <agx@sigxcpu.org>2017-03-19 18:56:33 +0100
commit75bf7932691b2a9de6ac7f36328e4e252f054c61 (patch)
tree1ed4940b18135bdcd079343b83f44d43e64dcdfb /examples
parent1dd290a792d5a9e3b712ff88482540fd283f0171 (diff)
posttag-push: Use named parameter for dry_run
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/gbp-posttag-push10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/gbp-posttag-push b/examples/gbp-posttag-push
index ed7c792c..0b9335f6 100755
--- a/examples/gbp-posttag-push
+++ b/examples/gbp-posttag-push
@@ -168,20 +168,20 @@ def do_push(repo, dests, debian_tag, debian_sha1, upstream_tag, upstream_sha1, u
verb = "Dry-run: Pushing" if dry_run else "Pushing"
for dest in dests:
gbp.log.info("%s %s to %s" % (verb, debian_tag, dest))
- repo.push_tag(dest, debian_tag, dry_run)
+ repo.push_tag(dest, debian_tag, dry_run=dry_run)
gbp.log.info("%s %s to %s:%s" % (verb, debian_sha1, dest, dests[dest]))
- repo.push(dest, debian_sha1, dests[dest], dry_run)
+ repo.push(dest, debian_sha1, dests[dest], dry_run=dry_run)
if upstream_tag:
gbp.log.info("%s %s to %s" % (verb, upstream_tag, dest))
- repo.push_tag(dest, upstream_tag, dry_run)
+ repo.push_tag(dest, upstream_tag, dry_run=dry_run)
if not repo.branch_contains("%s/%s" % (dest, upstream_branch),
upstream_sha1, remote=True):
gbp.log.info("%s %s to %s:%s" % (verb, upstream_sha1, dest, upstream_branch))
- repo.push(dest, upstream_sha1, upstream_branch, dry_run)
+ repo.push(dest, upstream_sha1, upstream_branch, dry_run=dry_run)
if pristine_tar_sha1:
branch = repo.pristine_tar.branch
gbp.log.info("%s %s to %s:%s" % (verb, pristine_tar_sha1, dest, branch))
- repo.push(dest, pristine_tar_sha1, branch, dry_run)
+ repo.push(dest, pristine_tar_sha1, branch, dry_run=dry_run)
def main(argv):