[Yum] First minor patch concerning symlinks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

here's my first little patch in order to extend control of follow
directory symlinks in yum-arch -l [2.0.7]:

--- serverStuff.py.orig	2004-07-21 15:19:50.384735384 +0200
+++ serverStuff.py	2004-07-21 15:21:52.517034002 +0200
@@ -37,6 +37,8 @@
         sys.exit(1)
         
     for d in dir_list:
+        if not usesymlinks and os.path.islink(path + '/' + d):
+            continue
         if os.path.isdir(path + '/' + d):
             list = getfilelist(path + '/' + d, ext, list, usesymlinks)
         else:

What's your opinion?

BTW, what's the reasoning behind the strategy to throw away all 
headers on every yum-arch run (if I read the source correctly)?

Pete


[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux