[yum-cvs] yum/yum __init__.py,1.281,1.282

Jeremy Katz katzj at linux.duke.edu
Wed Feb 21 18:21:10 UTC 2007


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

Modified Files:
	__init__.py 
Log Message:
don't complain about being unable to remove headers that may not exist


Index: __init__.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/__init__.py,v
retrieving revision 1.281
retrieving revision 1.282
diff -u -r1.281 -r1.282
--- __init__.py	14 Feb 2007 21:35:09 -0000	1.281
+++ __init__.py	21 Feb 2007 18:21:08 -0000	1.282
@@ -876,6 +876,8 @@
 
         # now remove them
         for fn in filelist:
+            if not os.path.exists(fn):
+                continue
             try:
                 os.unlink(fn)
             except OSError, e:




More information about the Yum-cvs-commits mailing list