diff options
Diffstat (limited to 'dev-python/python-report/files/python-report-0.10-fix-version-detection.patch')
-rw-r--r-- | dev-python/python-report/files/python-report-0.10-fix-version-detection.patch | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/dev-python/python-report/files/python-report-0.10-fix-version-detection.patch b/dev-python/python-report/files/python-report-0.10-fix-version-detection.patch deleted file mode 100644 index d8f9b955..00000000 --- a/dev-python/python-report/files/python-report-0.10-fix-version-detection.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff -Nurp python-report-0.10.orig//python/report/templates/bugzilla-template/filer.py python-report-0.10/python/report/templates/bugzilla-template/filer.py ---- python-report-0.10.orig//python/report/templates/bugzilla-template/filer.py 2010-04-13 23:08:08.849090647 +0200 -+++ python-report-0.10/python/report/templates/bugzilla-template/filer.py 2010-04-13 23:09:20.799052132 +0200 -@@ -61,15 +61,11 @@ def getVersion(): - if os.path.exists(SYSTEM_VERSION_PATH): - file = open(SYSTEM_VERSION_PATH, "r") - content = file.read() -- if content.find("Rawhide") > -1: -- return "rawhide" -- -- clist = content.split(" ") -- i = clist.index("release") -- return clist[i+1] -+ file.close() -+ return content.strip().split()[-1] - else: - # default to rawhide -- return "rawhide" -+ return "unknown" - - class LoginError(Exception): - """An error occurred while logging into the bug reporting system.""" |