add some comments
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13678 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
1f0807ab5c
commit
01461cdc50
@ -1558,7 +1558,7 @@ sub update_osdistro_table
|
||||
if($arch){
|
||||
$updates{arch} = $arch;
|
||||
}
|
||||
|
||||
#split $osver to basename,majorversion,minorversion
|
||||
if($osver){
|
||||
($updates{basename},$updates{majorversion},$updates{minorversion}) = &parseosver($osver);
|
||||
}
|
||||
@ -1577,6 +1577,7 @@ sub update_osdistro_table
|
||||
(my $ref) = $tab->getAttribs(\%keyhash, 'dirpaths');
|
||||
if ($ref and $ref->{dirpaths} )
|
||||
{
|
||||
#if $path does not exits in "dirpaths" of osdistro,append the $path delimited with a ",";otherwise keep the original value
|
||||
unless($ref->{dirpaths} =~ /^($path)\/*,|,($path)\/*,|,($path)\/*$|^($path)\/*$/)
|
||||
{
|
||||
$updates{dirpaths}=$ref->{dirpaths}.','.$path;
|
||||
|
Loading…
Reference in New Issue
Block a user