diff --git a/scripts/process-git-requests/process-git-requests b/scripts/process-git-requests/process-git-requests index cd1e8e0..6a00a77 100755 --- a/scripts/process-git-requests/process-git-requests +++ b/scripts/process-git-requests/process-git-requests @@ -13,7 +13,6 @@ VERSION = "1.0" # Package already exists in pkgdb. # fedora-review flag isn't set (especially if it's still set to '?' # Catch common misspellings? -# Try to do some checking on the ~/.bugzillacookies file and suggest "bugzilla login" import bugzilla import codecs @@ -682,6 +681,12 @@ if __name__ == '__main__': print "Done." print + # I think this reliably detects whether or not you've logged in + if bugs[0].assigned_to.find('@') < 0: + print "It looks as if you don't have a valid bugzilla cookie." + print "Please run 'bugzilla login' and try again." + exit(1) + # Iterate over bugs for i in bugs: firstfound = True