From f51fe621a32827f476146a335d4fefd6d46170ec Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 26 Mar 2008 15:44:34 +0000 Subject: [PATCH] Presume a less likely to collide name for repositories gleaned during copycds process git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@900 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT-2.0/xCAT/Yum.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perl-xCAT-2.0/xCAT/Yum.pm b/perl-xCAT-2.0/xCAT/Yum.pm index 92b6dac58..1cc136dd2 100644 --- a/perl-xCAT-2.0/xCAT/Yum.pm +++ b/perl-xCAT-2.0/xCAT/Yum.pm @@ -17,7 +17,7 @@ sub localize_yumrepo { my $primaryxml; $installpfx = "$installroot/$distname/$arch/"; mkpath("$installroot/postscripts/repos/$distname/$arch/"); - open($yumrepofile,">","$installroot/postscripts/repos/$distname/$arch/mediarepo.tmpl"); + open($yumrepofile,">","$installroot/postscripts/repos/$distname/$arch/local-repository.tmpl"); find(\&check_tofix,$installpfx); close($yumrepofile); } @@ -33,7 +33,7 @@ sub fix_directory { my $yumurl = File::Spec->catdir(@dircomps); $yumurl =~ s!$installpfx!http://#INSTSERVER#/install/$distname/$arch/!; my $reponame = $dircomps[$#dircomps]; - print $yumrepofile "[$distname-$arch-$reponame]\n"; + print $yumrepofile "[local-$distname-$arch-$reponame]\n"; print $yumrepofile "name=xCAT configured yum repository for $distname/$arch/$reponame\n"; print $yumrepofile "baseurl=$yumurl\n"; print $yumrepofile "enabled=1\n";