[yum-commits] yum/drpm.py
zpavlas at osuosl.org
zpavlas at osuosl.org
Wed Aug 7 14:24:31 UTC 2013
yum/drpm.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit a02561342b3340c0ae59ce14562544438261d7ca
Author: Zdenek Pavlas <zpavlas at redhat.com>
Date: Wed Aug 7 16:23:16 2013 +0200
deltarpm: _wait(block=True) should not wait for all running jobs. BZ 991694
diff --git a/yum/drpm.py b/yum/drpm.py
index 47e7f5d..464f17c 100644
--- a/yum/drpm.py
+++ b/yum/drpm.py
@@ -256,6 +256,10 @@ class DeltaInfo:
os.unlink(po.localpath)
po.localpath = po.rpm.localpath # for --downloadonly
num += 1
+
+ # when blocking, one is enough
+ if block:
+ break
return num
def rebuild(self, po):
@@ -308,7 +312,7 @@ class DeltaInfo:
if self.limit <= len(self.jobs):
if not block:
return False
- self.wait((self.limit - len(self.jobs)) + 1)
+ self.wait(len(self.jobs) - self.limit + 1)
po = self._future_jobs.pop(0)
args = ('-a', po.arch)
More information about the Yum-commits
mailing list