2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-08 22:01:30 +00:00

Merge pull request #84 from mattaezell/packages_gz

Look for Packages or Packages.gz in the otherpkgdir
This commit is contained in:
Xiaopeng Wang
2015-08-18 13:35:34 +08:00

View File

@ -494,10 +494,8 @@ unless ($onlyinitrd) {
#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(!$?)
if (-f $tmpdir . '/Packages' || -f $tmpdir . '/Packages.gz')
{
print $aptconfig "deb file:///mnt/otherpkgdir/$_ ./\n"
}