[dev-python/python-report] add one more patch to fix sabayon version detection

This commit is contained in:
Fabio Erculiani
2010-04-13 23:12:27 +02:00
parent b7a55b58b4
commit a5ddf54f9a
3 changed files with 25 additions and 1 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
AUX bugs.sabayon.org.ini 171 RMD160 87fd58ee98c30e9924c569e65bbf7c4b03707095 SHA1 d3769ff4c5d2418bab0128291d337d535ba66b16 SHA256 84060de5c596e836a58d166c12fc373852cfe104da78853b4499acebbc3e92b5
AUX python-report-0.10-disable-rpm.patch 1292 RMD160 816b671a5418a25f5c3d2874de98eed5bb962127 SHA1 649c42b4c17e03b015badb0c8a70215350111b39 SHA256 38633e72b7265580a33b118deddb3f6cae932f6935a9c40f73fa4ec3e1dab990
AUX python-report-0.10-fix-version-detection.patch 1038 RMD160 39db9d2b7835a5e5902946e5e623dad3608d3acd SHA1 41ce2a64447e23e7612a1f5b28da953fd96e2233 SHA256 a6e61621ac0a0d3eb0f906e78b6726eee357f0213b41b68e2a1efe4f8788c545
AUX python-report-0.10-sabayon-defaults.patch 2816 RMD160 16cd841db8789c664c5a3cc2d595e735ecf0fa6b SHA1 3b0ef79a491c5e4bd91d16fee35392762c244e68 SHA256 7e662cea4143c5d3f27646c6250cf57f3e91b29d58bb0aff883e60e1d1478830
EBUILD python-report-0.10.ebuild 1358 RMD160 e11bccfdb2b11926d5e764744bca9c7a44624041 SHA1 3696610e5a3298f8175d19adfab88f2fcaeedd81 SHA256 3195a7979d42276b5ca1b3510a3a4cfe33bfd86d15f72c011dc1a8d4a03705d7
EBUILD python-report-0.10.ebuild 1413 RMD160 30e214ed62ef2e76031d9e5bd21f29670fac4c81 SHA1 e8b2dd5a49624bb31d13839e7dc6101fb9c2d054 SHA256 40c4d488ce87cf50115539a03ddd6450d4c86232bd2f7286ae108c86c04004c5
@@ -0,0 +1,22 @@
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."""
@@ -27,6 +27,7 @@ src_prepare() {
epatch "${FILESDIR}"/${P}-sabayon-defaults.patch
epatch "${FILESDIR}"/${P}-disable-rpm.patch
epatch "${FILESDIR}"/${P}-fix-version-detection.patch
eautoreconf || die "cannot run eautoreconf"
autoreconf -i || die "wtf"