backend/satellite_tools/satsync.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 5aa78baa082ab3def11b11c85db2617b25823603
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Thu Dec 3 16:39:38 2009 +0100
no need to count lenght, it is saved in returnedChunksize already
diff --git a/backend/satellite_tools/satsync.py b/backend/satellite_tools/satsync.py
index 298cef8..106468d 100644
--- a/backend/satellite_tools/satsync.py
+++ b/backend/satellite_tools/satsync.py
@@ -1648,7 +1648,6 @@ Please contact your RHN representative""" %
(generation, sat_cert.generation))
ss = SequenceServer(packages[:], nevermorethan=self._batch_size)
while not ss.doneYN():
chunk = ss.getChunk()
- item_count = len(chunk)
batch = self._get_cached_package_batch(chunk)
# check to make sure the orgs exported are valid
_validate_package_org(batch)
@@ -1664,7 +1663,7 @@ Please contact your RHN representative""" %
(generation, sat_cert.generation))
# an SQL error is fatal... crash and burn
sys.exit(13)
ss.clearChunk()
- pb.addTo(item_count)
+ pb.addTo(ss.returnedChunksize)
pb.printIncrement()
pb.printComplete()
# Populate the package key info
Show replies by date