copycds enhancement: sub localize_yumrepo have to follow symlinks
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13035 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
621425dada
commit
ec55bfc9fa
@ -18,9 +18,14 @@ sub localize_yumrepo {
|
||||
$installpfx = "$installroot/$distname/$arch";
|
||||
mkpath("$installroot/postscripts/repos/$distname/$arch/");
|
||||
open($yumrepofile,">","$installroot/postscripts/repos/$distname/$arch/local-repository.tmpl");
|
||||
find(\&check_tofix,$installpfx);
|
||||
close($yumrepofile);
|
||||
my %options=(
|
||||
wanted => \&check_tofix,
|
||||
follow_fast => 1
|
||||
);
|
||||
find(\%options,$installpfx);
|
||||
close($yumrepofile);
|
||||
}
|
||||
|
||||
sub check_tofix {
|
||||
if (-d $File::Find::name and $File::Find::name =~ /\/repodata$/) {
|
||||
if($distname =~ /rhels5/)
|
||||
|
Loading…
Reference in New Issue
Block a user