backend/satellite_tools/satsync.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
New commits: commit 0d34b805baf4db547d9dbdd0cc71546e0707fd6a Author: Miroslav Suchý msuchy@redhat.com Date: Tue Oct 4 10:22:13 2011 +0200
742905 - if thread will throw traceback do not forget to release lock, so other threads can continue
diff --git a/backend/satellite_tools/satsync.py b/backend/satellite_tools/satsync.py index 3c252d3..08428bb 100644 --- a/backend/satellite_tools/satsync.py +++ b/backend/satellite_tools/satsync.py @@ -1902,8 +1902,12 @@ class ThreadDownload(threading.Thread): # Retry a number of times, we may have network errors for i in range(cfg['networkRetries']): self.lock.acquire() - rpmFile, stream = self.syncer._get_package_stream(self.channel, - package_id, nvrea, self.sources) + try: + rpmFile, stream = self.syncer._get_package_stream(self.channel, + package_id, nvrea, self.sources) + except: + self.lock.release() + raise self.lock.release() if stream is None: # Mark the package as extinct
spacewalk-commits@lists.fedorahosted.org