[yum-cvs] yum/yum __init__.py,1.176,1.177

Seth Vidal skvidal at linux.duke.edu
Tue Jan 17 07:40:34 UTC 2006


Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv6731

Modified Files:
	__init__.py 
Log Message:

make note about bug 550 and to make yum check if there is space
available in the cache dir before downloading packages.


Index: __init__.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/__init__.py,v
retrieving revision 1.176
retrieving revision 1.177
diff -u -r1.176 -r1.177
--- __init__.py	15 Jan 2006 12:23:05 -0000	1.176
+++ __init__.py	17 Jan 2006 07:40:32 -0000	1.177
@@ -635,6 +635,11 @@
             remote = po.returnSimple('relativepath')
             checkfunc = (self.verifyPkg, (po, 1), {})
 
+
+            # FIXME - add check here to make sure we have the disk space
+            # available to download the package. If we don't then politely
+            # bail out with an informative message.
+            # os.statvfs(repo's local path)[4]*[2] >= po.size
             try:
                 text = '(%s/%s): %s' % (i, len(remote_pkgs),
                                         os.path.basename(remote))




More information about the Yum-cvs-commits mailing list