[yum-cvs] yum cli.py,1.203,1.204
Seth Vidal
skvidal at linux.duke.edu
Mon Dec 19 06:16:11 UTC 2005
Update of /home/groups/yum/cvs/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv20172
Modified Files:
cli.py
Log Message:
fix for rh bug 175791, don't post 'download size needed if there's nothing
being installed/updated and therefore nothing to be downloaded.
Index: cli.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/cli.py,v
retrieving revision 1.203
retrieving revision 1.204
diff -u -r1.203 -r1.204
--- cli.py 13 Dec 2005 08:45:18 -0000 1.203
+++ cli.py 19 Dec 2005 06:16:09 -0000 1.204
@@ -627,15 +627,18 @@
# Check which packages have to be downloaded
downloadpkgs = []
+ stuff_to_download = False
for txmbr in self.tsInfo.getMembers():
if txmbr.ts_state in ['i', 'u']:
+ stuff_to_download = True
po = txmbr.po
if po:
downloadpkgs.append(po)
# Report the total download size to the user, so he/she can base
# the answer on this info
- self.reportDownloadSize(downloadpkgs)
+ if stuff_to_download:
+ self.reportDownloadSize(downloadpkgs)
# confirm with user
if self._promptWanted():
More information about the Yum-cvs-commits
mailing list