From 5371195caafa1cf3cd918cb9bfadf20515d670b9 Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Sat, 18 Dec 2010 19:37:11 +0100 Subject: [PATCH] backportpackage: Improve upload question. --- backportpackage | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backportpackage b/backportpackage index dd31dc1..903ad1d 100755 --- a/backportpackage +++ b/backportpackage @@ -199,8 +199,10 @@ def do_build(workdir, package, release, bp_version, builder, update): workdir) def do_upload(workdir, package, bp_version, upload): - answer = YesNoQuestion().ask('Do you want to upload %s %s to %s' % \ - (package, bp_version, upload), "yes") + print 'Please check %s %s in file://%s carefully!' % \ + (package, bp_version, workdir) + question = 'Do you want to upload the package to %s' % upload + answer = YesNoQuestion().ask(question, "yes") if answer == "yes": changes_file = '%s_%s_source.changes' % (package, bp_version) check_call(['dput', upload, changes_file], cwd=workdir) @@ -226,7 +228,6 @@ def do_backport(workdir, package, dscfile, version, release, build, builder, if ':' in bp_version: bp_version = bp_version[bp_version.find(':')+1:] - print 'Please check the package in file://%s carefully' % workdir if build: if 0 != do_build(workdir, package, release, bp_version, builder, update): error('Package failed to build; aborting')