[packages/python-pisa] - make version test future proof

baggins baggins at pld-linux.org
Sun May 29 09:47:18 CEST 2016


commit 541b7aa233f767abdaf4ae5020e8ab524d95400b
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun May 29 09:47:01 2016 +0200

    - make version test future proof

 reportlab3.patch | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/reportlab3.patch b/reportlab3.patch
index bbcccf6..5773c7b 100644
--- a/reportlab3.patch
+++ b/reportlab3.patch
@@ -5,11 +5,11 @@
  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] == "3" or (reportlab.Version[0] == "2" and reportlab.Version[2] >= "1")):
++if not(reportlab.Version[0] >= "3" or (reportlab.Version[0] == "2" and reportlab.Version[2] >= "1")):
      raise ImportError("Reportlab Version 2.1+ is needed!")
  
 -REPORTLAB22 = (reportlab.Version[0] == "2" and reportlab.Version[2] >= "2")
-+REPORTLAB22 = (reportlab.Version[0] == "3" or (reportlab.Version[0] == "2" and reportlab.Version[2] >= "2"))
++REPORTLAB22 = (reportlab.Version[0] >= "3" or (reportlab.Version[0] == "2" and reportlab.Version[2] >= "2"))
  # print "***", reportlab.Version, REPORTLAB22, reportlab.__file__
  
  import logging
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pisa.git/commitdiff/541b7aa233f767abdaf4ae5020e8ab524d95400b



More information about the pld-cvs-commit mailing list