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

Re: [PATCH f14-branch master] Reset labels on /var/cache/yum as well (#623434).



> diff --git a/pyanaconda/packages.py b/pyanaconda/packages.py
> index 7d88d06..1384d1c 100644
> --- a/pyanaconda/packages.py
> +++ b/pyanaconda/packages.py
> @@ -205,7 +205,7 @@ def setFileCons(anaconda):
>          vgs = ["/dev/%s" % vg.name for vg in anaconda.storage.vgs]
>  
>          # ugh, this is ugly
> -        for dir in ["/etc/sysconfig/network-scripts", "/var/lib/rpm", "/etc/lvm", "/dev/mapper", "/etc/iscsi", "/var/lib/iscsi", "/root", "/var/log", "/etc/modprobe.d", "/etc/sysconfig" ] + vgs:
> +        for dir in ["/etc/sysconfig/network-scripts", "/var/lib/rpm", "/etc/lvm", "/dev/mapper", "/etc/iscsi", "/var/lib/iscsi", "/root", "/var/log", "/etc/modprobe.d", "/etc/sysconfig", "/var/cache/yum" ] + vgs:
>              def addpath(x): return dir + "/" + x
>  
>              if not os.path.isdir(anaconda.rootPath + dir):

This version won't recurse down through whatever's in /var/cache/yum.
Hold on, reworking.

- Chris


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