pld-builder.new: PLD_Builder/rpm_builder.py - always raise ioerror for erro...
arekm
arekm at pld-linux.org
Mon Aug 17 12:20:09 CEST 2009
Author: arekm Date: Mon Aug 17 10:20:09 2009 GMT
Module: pld-builder.new Tag: HEAD
---- Log message:
- always raise ioerror for errors != 404
---- Files affected:
pld-builder.new/PLD_Builder:
rpm_builder.py (1.104 -> 1.105)
---- Diffs:
================================================================
Index: pld-builder.new/PLD_Builder/rpm_builder.py
diff -u pld-builder.new/PLD_Builder/rpm_builder.py:1.104 pld-builder.new/PLD_Builder/rpm_builder.py:1.105
--- pld-builder.new/PLD_Builder/rpm_builder.py:1.104 Mon Aug 17 12:12:17 2009
+++ pld-builder.new/PLD_Builder/rpm_builder.py Mon Aug 17 12:20:04 2009
@@ -87,10 +87,10 @@
b.log_line(msg)
queue_time = time.time() - r.time
# 6 hours
- if queue_time >= 0 and queue_time < (6 * 60 * 60):
+ if error.code != 404 or (queue_time >= 0 and queue_time < (6 * 60 * 60)):
raise IOError, msg
else:
- msg = "too long in queue, failing"
+ msg = "in queue for mor than 6 hours, download failing"
b.log_line(msg)
return False
except urllib2.URLError, error:
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-builder.new/PLD_Builder/rpm_builder.py?r1=1.104&r2=1.105&f=u
More information about the pld-cvs-commit
mailing list