From 58a6b7a28d39da5614964261a71d5a07a1c67b86 Mon Sep 17 00:00:00 2001 From: jjhua Date: Wed, 29 May 2013 07:44:21 +0000 Subject: [PATCH] fixed bug 3598 for PCM Ai Lei, support it for rhels5.9. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16444 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/Template.pm | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/xCAT-server/lib/perl/xCAT/Template.pm b/xCAT-server/lib/perl/xCAT/Template.pm index 0e5f38ddd..c079d1411 100644 --- a/xCAT-server/lib/perl/xCAT/Template.pm +++ b/xCAT-server/lib/perl/xCAT/Template.pm @@ -115,14 +115,12 @@ sub subvars { my $c = 0; foreach my $pkgdir(@pkgdirs) { # For rhels5.9, the os base repo should be url - # and the repo repository will be the additional. - if ( $c == 0 && $os =~ /^rhels5/) { - $source .= "url --url http://#TABLE:noderes:\$NODE:nfsserver#/$pkgdir\n"; - $c++; - next; - } - if( $platform =~ /^(rh|SL)$/ ) { - $source .= "repo --name=pkg$c --baseurl=http://#TABLE:noderes:\$NODE:nfsserver#/$pkgdir\n"; + # and the repo repository will be the additional. So Corret it. + if( $platform =~ /^(rh|SL)$/ ) { + if ( $c == 0 ) { + $source .= "url --url http://#TABLE:noderes:\$NODE:nfsserver#/$pkgdir\n"; + } else { + $source .= "repo --name=pkg$c --baseurl=http://#TABLE:noderes:\$NODE:nfsserver#/$pkgdir\n"; } } elsif ($platform =~ /^(sles|suse)/) { my $http = "http://#TABLE:noderes:\$NODE:nfsserver#$pkgdir"; $source .= "