From 33161bf46df3ef8ea3e9ecbf3a0f284da9e15d78 Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Fri, 6 Aug 2010 18:49:25 -0500 Subject: [PATCH] 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. --- scripts/process-git-requests/process-git-requests | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/process-git-requests/process-git-requests b/scripts/process-git-requests/process-git-requests index e3b9abe..1294ea1 100755 --- a/scripts/process-git-requests/process-git-requests +++ b/scripts/process-git-requests/process-git-requests @@ -13,7 +13,6 @@ VERSION = "1.0" # Any owner contains '@' or other invalid character # Maybe verify owners in pkgdb/FAS. # 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 codecs @@ -413,7 +412,7 @@ def process_new_request(bug, comment, allcomments, firstfound, pkgdb, branches): if not 'Owners' in items: warnings.append("WARNING: No owners provided.") 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.") warned = True for i in request['branches']: