mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 09:13:08 +00:00
fix defect 4723 mixed directory and http otherpkgdir make genimage failed.
This commit is contained in:
parent
a7c0db9d30
commit
c8497e2ff2
@ -490,12 +490,21 @@ unless ($onlyinitrd) {
|
||||
if($_ eq "INCLUDEBAD") {
|
||||
xdie "Unable to open the following pkglist files:\n".join("\n",@{$extra_hash{$pass}{INCLUDEBAD}});
|
||||
}
|
||||
|
||||
if (($_ eq "PRE_REMOVE") || ($_ eq "POST_REMOVE") || ($_ eq "ENVLIST")) { next;}
|
||||
if ($otherpkgsdir_local) { print $aptconfig "deb file:///mnt/otherpkgdir/$_ ./\n"};
|
||||
$index++;
|
||||
my $pa=$extra_hash{$pass}{$_};
|
||||
$extrapkgnames{$pass} .= " " . join(' ', @$pa);
|
||||
if (($_ eq "PRE_REMOVE") || ($_ eq "POST_REMOVE") || ($_ eq "ENVLIST")) { next;}
|
||||
#if there is no Packages file in otherpkgsdir local, it will not be added into source list
|
||||
if ($otherpkgsdir_local)
|
||||
{
|
||||
my $tmppkg=$otherpkgsdir_local."/".$_."/Packages";
|
||||
my $tmpdir=$otherpkgsdir_local."/".$_;
|
||||
`ls $tmppkg 2>&1`;
|
||||
if(!$?)
|
||||
{
|
||||
print $aptconfig "deb file:///mnt/otherpkgdir/$_ ./\n"
|
||||
}
|
||||
};
|
||||
$index++;
|
||||
my $pa=$extra_hash{$pass}{$_};
|
||||
$extrapkgnames{$pass} .= " " . join(' ', @$pa);
|
||||
}
|
||||
}
|
||||
close($aptconfig);
|
||||
|
Loading…
x
Reference in New Issue
Block a user