Added logic to the deb pkg script to not put duplicate entries into the pkg depends list.

This commit is contained in:
Matthew Budd 2020-05-16 07:38:20 -04:00
parent 09d84283cd
commit 3573a596e9
1 changed files with 15 additions and 10 deletions

View File

@ -52,16 +52,21 @@ for ($i=0; $i<$#libls; $i++)
if ( $pkglist[$j] =~ m/(.*):$ARCH:\s+(.*)/ )
{
$pkg = $1;
$filepath = $2;
$filepath =~ s/^.*\///;
if ( $libls[$i] eq $filepath )
{
#print "PKG: '$pkg' '$libls[$i]' == '$filepath' \n";
$pkgdeps[ $#pkgdeps ] = $pkg; $#pkgdeps++;
}
$pkg = $1;
$filepath = $2;
$filepath =~ s/^.*\///;
if ( $libls[$i] eq $filepath )
{
#print "PKG: '$pkg' '$libls[$i]' == '$filepath' \n";
# Don't put duplicate entries into the pkg depend list.
if ( !defined( $pkghash{$pkg} ) )
{
$pkgdeps[ $#pkgdeps ] = $pkg; $#pkgdeps++;
$pkghash{$pkg} = 1;
}
}
}
}
}