None has to be replaced with some default ("0"), otherwise libreport raises expcetion and bug reporting doesn't work.
Signed-off-by: Vratislav Podzimek vpodzime@redhat.com --- meh/dump.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meh/dump.py b/meh/dump.py index 5137719..cc049c0 100644 --- a/meh/dump.py +++ b/meh/dump.py @@ -144,7 +144,7 @@ class ExceptionDump(object): raise RPMinfoError("Cannot get package and component for file "+ "{0}".format(file_)) pkg_info = PackageInfo(header["name"], header["version"], - header["release"], header["epoch"], + header["release"], header["epoch"] or "0", header["arch"])
# cuts the name from the NVR format: foo-blah-2.8.8-2.fc17.src.rpm
None has to be replaced with some default ("0"), otherwise libreport raises expcetion and bug reporting doesn't work.
libreport really ought to handle the possibility that it'll get a None when it doesn't expect, but this is fine to do in python-meh too. Can't be too careful.
- Chris
anaconda-patches@lists.fedorahosted.org