extras-buildsys/server ArchJob.py,1.16.2.9,1.16.2.10
Daniel Williams (dcbw)
fedora-extras-commits at redhat.com
Mon Mar 20 12:48:57 UTC 2006
Author: dcbw
Update of /cvs/fedora/extras-buildsys/server
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv25946/server
Modified Files:
Tag: STABLE_0_4
ArchJob.py
Log Message:
2006-03-20 Dan Williams <dcbw at redhat.com>
* common/FileDownloader.py
- Pass error message to download callback
* builder/builder.py
server/ArchJob.py
- Print out download errors, if any
Index: ArchJob.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/server/ArchJob.py,v
retrieving revision 1.16.2.9
retrieving revision 1.16.2.10
diff -u -r1.16.2.9 -r1.16.2.10
--- ArchJob.py 23 Feb 2006 19:14:49 -0000 1.16.2.9
+++ ArchJob.py 20 Mar 2006 12:48:49 -0000 1.16.2.10
@@ -196,7 +196,7 @@
dl_dict[DL_WAIT_TIME] = 0
self._downloads[uf] = dl_dict
- def dl_callback(self, status, cb_data):
+ def dl_callback(self, status, cb_data, err_msg):
url = cb_data
self._download_lock.acquire()
dl_dict = self._downloads[url]
@@ -207,8 +207,8 @@
if dl_dict[DL_RETRIES] >= 10:
dl_dict[DL_STATUS] = STATUS_ERROR
else:
- print "%s (%s/%s): Failed to retrieve %s (attempt %d), trying again..." % (self.par_job.uid,
- self.par_job.package, self._target_dict['arch'], url, dl_dict[DL_RETRIES])
+ print "%s (%s/%s): Failed to retrieve %s (attempt %d) (Error %s), trying again..." % (self.par_job.uid,
+ self.par_job.package, self._target_dict['arch'], url, dl_dict[DL_RETRIES], err_msg)
dl_dict[DL_STATUS] = STATUS_WAITING
dl_dict[DL_WAIT_TIME] = 5 # Wait a bit before trying again
dl_dict[DL_RETRIES] = dl_dict[DL_RETRIES] + 1
More information about the fedora-extras-commits
mailing list