Skip to content

Commit

Permalink
Fix prompt and make command invocation live in packaging script
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
rinon committed Aug 14, 2019
1 parent 9b2f91b commit f66b74f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def publish(self):
exit(1)

if not self.dry_run:
if not confirm('Are you sure you want to publish version {} to crates.io?'):
if not confirm('Are you sure you want to publish version {} to crates.io?'.format(self.version)):
print_error('Publishing not confirmed, exiting.')
exit(1)

Expand Down Expand Up @@ -187,7 +187,7 @@ def _git_push_tag(self):
]

for cmd in cmds:
if not self._invoke(cmd, dry_run=True):
if not self._invoke(cmd):
return False
return True

Expand All @@ -196,7 +196,7 @@ def _publish(self, crate_name, cargo_toml):
if self.dry_run:
args += ['--dry-run']
cmd = cargo[args]
return self._invoke(cmd, dry_run=True)
return self._invoke(cmd)


def _parse_args():
Expand Down

0 comments on commit f66b74f

Please sign in to comment.