Ensure provided description has length.
Add a warning if the provided description has zero length, since zero length descriptions not only make no sense, but an empty description breaks the bugzilla sync script.
This commit is contained in:
parent
5a568706a6
commit
33161bf46d
1 changed files with 1 additions and 2 deletions
|
@ -13,7 +13,6 @@ VERSION = "1.0"
|
||||||
# Any owner contains '@' or other invalid character
|
# Any owner contains '@' or other invalid character
|
||||||
# Maybe verify owners in pkgdb/FAS.
|
# Maybe verify owners in pkgdb/FAS.
|
||||||
# Try to do some checking on the ~/.bugzillacookies file and suggest "bugzilla login"
|
# Try to do some checking on the ~/.bugzillacookies file and suggest "bugzilla login"
|
||||||
# Verify that the supplied summary has something in it.
|
|
||||||
|
|
||||||
import bugzilla
|
import bugzilla
|
||||||
import codecs
|
import codecs
|
||||||
|
@ -413,7 +412,7 @@ def process_new_request(bug, comment, allcomments, firstfound, pkgdb, branches):
|
||||||
if not 'Owners' in items:
|
if not 'Owners' in items:
|
||||||
warnings.append("WARNING: No owners provided.")
|
warnings.append("WARNING: No owners provided.")
|
||||||
warned = True
|
warned = True
|
||||||
if not 'Short Description' in items:
|
if not('Short Description' in items) or not(len(items['Short Description'])):
|
||||||
warnings.append("WARNING: No description provided.")
|
warnings.append("WARNING: No description provided.")
|
||||||
warned = True
|
warned = True
|
||||||
for i in request['branches']:
|
for i in request['branches']:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue