pld-builder.new: PLD_Builder/rpm_builder.py - warn in logs

arekm arekm at pld-linux.org
Wed Jul 15 15:47:54 CEST 2009


Author: arekm                        Date: Wed Jul 15 13:47:54 2009 GMT
Module: pld-builder.new               Tag: HEAD
---- Log message:
- warn in logs

---- Files affected:
pld-builder.new/PLD_Builder:
   rpm_builder.py (1.95 -> 1.96) 

---- Diffs:

================================================================
Index: pld-builder.new/PLD_Builder/rpm_builder.py
diff -u pld-builder.new/PLD_Builder/rpm_builder.py:1.95 pld-builder.new/PLD_Builder/rpm_builder.py:1.96
--- pld-builder.new/PLD_Builder/rpm_builder.py:1.95	Wed Jul 15 15:45:07 2009
+++ pld-builder.new/PLD_Builder/rpm_builder.py	Wed Jul 15 15:47:49 2009
@@ -65,9 +65,12 @@
                 continue
             else:
                 return False
-        if hasattr(f, 'getcode') and f.getcode() == 200:
-            f.close()
-            return True
+        if hasattr(f, 'getcode'):
+            if f.getcode() == 200:
+                f.close()
+                return True
+        else:
+            b.log_line("checking unsupported, please upgrade python to >= 2.6")
         f.close()
     return False
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-builder.new/PLD_Builder/rpm_builder.py?r1=1.95&r2=1.96&f=u



More information about the pld-cvs-commit mailing list