Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:smarty12:Python
python-pisa
0002-Fix-reportlab-version-detection-for-versio...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-Fix-reportlab-version-detection-for-versions-greater.patch of Package python-pisa
From 25efc8f0dbf0fe2b509ab5ce788b57357d995095 Mon Sep 17 00:00:00 2001 From: Matthias Schmitz <matthias@sigxcpu.org> Date: Tue, 8 Apr 2014 22:32:47 +0200 Subject: [PATCH] Fix reportlab version detection for versions greater 2.x Since python-reportlab 3 is in sid the version detection was broken as it only detects versions starting with 2.x . --- sx/pisa3/pisa_util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sx/pisa3/pisa_util.py b/sx/pisa3/pisa_util.py index d31d5a9..f5bfa68 100644 --- a/sx/pisa3/pisa_util.py +++ b/sx/pisa3/pisa_util.py @@ -40,10 +40,10 @@ import shutil rgb_re = re.compile("^.*?rgb[(]([0-9]+).*?([0-9]+).*?([0-9]+)[)].*?[ ]*$") -if not(reportlab.Version[0] == "2" and reportlab.Version[2] >= "1"): +if not((reportlab.Version[0] == "2" and reportlab.Version[2] >= "1") or reportlab.Version[0] > "2"): raise ImportError("Reportlab Version 2.1+ is needed!") -REPORTLAB22 = (reportlab.Version[0] == "2" and reportlab.Version[2] >= "2") +REPORTLAB22 = ((reportlab.Version[0] == "2" and reportlab.Version[2] >= "2") or reportlab.Version[0] > "2") # print "***", reportlab.Version, REPORTLAB22, reportlab.__file__ import logging -- 1.8.5.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor