[meld] maint: Make not uploading actually work
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] maint: Make not uploading actually work
- Date: Mon, 24 Nov 2014 21:29:35 +0000 (UTC)
commit efd93d03909601ff9eedfb3ef3a1559586c7b220
Author: Kai Willadsen <kai willadsen gmail com>
Date: Tue Nov 25 07:28:51 2014 +1000
maint: Make not uploading actually work
maint.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/maint.py b/maint.py
index 642718c..4bc60e5 100755
--- a/maint.py
+++ b/maint.py
@@ -375,8 +375,11 @@ def tag():
@cli.command()
@click.argument('path', type=click.Path(exists=True))
def upload(path):
- click.confirm(
- '\nUpload %s to %s?' % (path, UPLOAD_SERVER), default=True, abort=False)
+ confirm = click.confirm(
+ '\nUpload %s to %s?' % (path, UPLOAD_SERVER), default=True,
+ abort=False)
+ if not confirm:
+ return
cmd = ['scp', path, UPLOAD_SERVER + ':']
call_with_output(cmd, timeout=120)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]