If python-bugzilla hands us back unicode, we'll have the package name in
a unicode string (even though it will only ever have ascii characters).
Passing this to python-fedora causes pycurl to blow
up.
Previously looked for the reqest strings anywhere in the comment, but
this breaks if someone quotes a request for some reason.
Switch to using a regexp instead.
For whatever reason some folks put "Branches" instead of "New Branches"
in their change requests. Try to handle this better, but I don't think
it's working properly yet.
Try to handle the case where we get a change request for a package that
does not exist in pkgdb. Gives more complaints than necessary but at
least doesn't backtrace.
For some reason some people insert blank lines in their SCM requests.
Since we stop parsing at the first blank line, this results in requests
without owners or branches. Handle that better.
Empirical evidence suggests that you will get full names instead of
email addresses for things like the assigned_to field if you haven't
logged into bugzilla. While I'd prefer to have both, this does give a
way to see if the bugzilla cookie is valid.
So, if no '@' in the first bug's assigned_to, bail.
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.
If we're not on pkgs01, SSH in to run pkgdb2branch.py.
If we are, just run it directly.
If there are errors (ssh failed, maybe) just save the package name and
proceed as we always did.