mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-11 15:50:11 +00:00
fix for bug 4059: trim the / at the end of pkgdir
This commit is contained in:
2
xCAT-server/lib/xcat/plugins/sles.pm
Normal file → Executable file
2
xCAT-server/lib/xcat/plugins/sles.pm
Normal file → Executable file
@ -956,6 +956,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);
|
||||
|
Reference in New Issue
Block a user