fix for bug 4059: trim the / at the end of pkgdir

This commit is contained in:
ligc 2014-04-11 15:43:13 -05:00
parent 8a592c77aa
commit bbe9bc188c

2
xCAT-server/lib/xcat/plugins/sles.pm Normal file → Executable file
View File

@ -957,6 +957,8 @@ sub mkinstall
my $tmppkgdir=$pkgdir;
my @srcdirs = split(",", $pkgdir);
$pkgdir = $srcdirs[0];
# trim the "/" in /install/sles11.3/x86_64/
$pkgdir =~ s/\/$//;
if( $pkgdir =~/^($installroot\/$os\/$arch)$/) {
$srcdirs[0]="$pkgdir/1";
$tmppkgdir=join(",", @srcdirs);