[yum-cvs] yum-utils repoclosure.py,1.6,1.7

Seth Vidal skvidal at login.linux.duke.edu
Tue Jun 21 15:50:48 UTC 2005


Update of /home/groups/yum/cvs/yum-utils
In directory login:/tmp/cvs-serv18323

Modified Files:
	repoclosure.py 
Log Message:

os.lstat() and just in time to mv to yum itself


Index: repoclosure.py
===================================================================
RCS file: /home/groups/yum/cvs/yum-utils/repoclosure.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- repoclosure.py	21 Jun 2005 05:09:17 -0000	1.6
+++ repoclosure.py	21 Jun 2005 15:50:46 -0000	1.7
@@ -53,7 +53,7 @@
     cachedirs = glob.glob(dirpath)
     
     for thisdir in cachedirs:
-        stats = os.stat(thisdir)        
+        stats = os.lstat(thisdir)        
         if S_ISDIR(stats[0]) and S_IMODE(stats[0]) == 448 and stats[4] == uid:
             print thisdir
             return thisdir
@@ -192,4 +192,3 @@
     
 if __name__ == "__main__":
     main()
-




More information about the Yum-cvs-commits mailing list