fix for bug 4059: trim the / at the end of pkgdir
This commit is contained in:
parent
8a592c77aa
commit
bbe9bc188c
2
xCAT-server/lib/xcat/plugins/sles.pm
Normal file → Executable file
2
xCAT-server/lib/xcat/plugins/sles.pm
Normal file → Executable 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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user