[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:40 UTC 2009
The following commit has been merged in the master branch:
commit 979e5b2256c47202fdb31c13fca40a0481866aac
Author: chaica <chaica at ohmytux.com>
Date: Sun Jul 19 23:57:16 2009 +0200
force providing subject while entering extra info
diff --git a/bin/reportbug b/bin/reportbug
index cf11493..1207408 100755
--- a/bin/reportbug
+++ b/bin/reportbug
@@ -1587,9 +1587,15 @@ For more details, please see: http://www.debian.org/devel/wnpp/''')
if special:
body = ''
prompted = True
- subject = ui.get_string(
- 'Please provide a subject for your response; no subject will '
- 'stop reportbug.', force_prompt=True)
+ subject_ok = False
+ while not subject_ok:
+ subject = ui.get_string(
+ 'Please provide a subject for your response.', force_prompt=True)
+ if not subject:
+ ewrite("Providing a subject is mandatory.\n")
+ else:
+ subject_ok = True
+
# Check to make sure the bug still exists to avoid auto-reopens
if subject and pkgversion:
if not ui.yes_no('Does this bug still exist in version %s '
--
Reportbug - reports bugs in the Debian distribution
More information about the Reportbug-commits
mailing list