2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 09:13:08 +00:00

Look for Packages or Packages.gz in the otherpkgdir

Allow the otherpkgdir to use a compressed Packages file so it can also be served
over http
This commit is contained in:
Matt Ezell 2015-08-17 09:18:21 -04:00
parent 3176dc8dc5
commit c670040b6f

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"
}