From f66b74fcd4859d7f2a71948f69f4ea7f551137c8 Mon Sep 17 00:00:00 2001 From: Stephen Crane Date: Wed, 14 Aug 2019 16:47:39 -0700 Subject: [PATCH] Fix prompt and make command invocation live in packaging script [skip ci] --- scripts/package.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/package.py b/scripts/package.py index 4987f8360a..2076816e66 100755 --- a/scripts/package.py +++ b/scripts/package.py @@ -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) @@ -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 @@ -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():