[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 4.5-10-g057aa80
Sandro Tosi
morph at debian.org
Mon Jul 20 13:53:34 UTC 2009
The following commit has been merged in the master branch:
commit 6a6ff9bef7bcbf65f44973990fc7e27b2bb1ee59
Author: chaica <chaica at ohmytux.com>
Date: Sun Jul 19 23:26:15 2009 +0200
do not stop on subject
diff --git a/bin/reportbug b/bin/reportbug
index ff48d77..5d13f61 100755
--- a/bin/reportbug
+++ b/bin/reportbug
@@ -1600,15 +1600,19 @@ For more details, please see: http://www.debian.org/devel/wnpp/''')
pkgversion = None
elif not subject and not notatty:
prompted = True
- subject = ui.get_string(
- 'Please briefly describe your problem (max. 100 characters allowed; you can elaborate in '
- 'a moment; an empty response will stop reportbug). This will '
- 'be the bug email subject, so write a concise summary of what '
- 'is wrong with the package, for example, "fails to send email" '
- 'or "does not start with -q option specified."', force_prompt=True)
-
- if not subject:
- efail("No subject specified; stopping.\n")
+ subject_ok = False
+ while not subject_ok:
+ subject = ui.get_string(
+ 'Please briefly describe your problem (max. 100 characters allowed; you can elaborate in '
+ 'a moment; an empty response will stop reportbug). This will '
+ 'be the bug email subject, so write a concise summary of what '
+ 'is wrong with the package, for example, "fails to send email" '
+ 'or "does not start with -q option specified."', force_prompt=True)
+
+ if not subject:
+ ewrite("Providing a subject is mandatory.\n")
+ else:
+ subject_ok = True
if len(subject) > 100 and prompted and mode < MODE_EXPERT:
subject = ui.get_string(
--
Reportbug - reports bugs in the Debian distribution
More information about the Reportbug-commits
mailing list