From ec55bfc9fa6f16bcae3f5e7230e78dbf16920145 Mon Sep 17 00:00:00 2001 From: immarvin Date: Fri, 8 Jun 2012 03:30:58 +0000 Subject: [PATCH] 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 --- perl-xCAT/xCAT/Yum.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/Yum.pm b/perl-xCAT/xCAT/Yum.pm index 7da4b3a7d..2208e22e2 100644 --- a/perl-xCAT/xCAT/Yum.pm +++ b/perl-xCAT/xCAT/Yum.pm @@ -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/)