Added logic to the deb pkg script to not put duplicate entries into the pkg depends list.
This commit is contained in:
parent
09d84283cd
commit
3573a596e9
|
@ -52,16 +52,21 @@ for ($i=0; $i<$#libls; $i++)
|
||||||
|
|
||||||
if ( $pkglist[$j] =~ m/(.*):$ARCH:\s+(.*)/ )
|
if ( $pkglist[$j] =~ m/(.*):$ARCH:\s+(.*)/ )
|
||||||
{
|
{
|
||||||
$pkg = $1;
|
$pkg = $1;
|
||||||
$filepath = $2;
|
$filepath = $2;
|
||||||
|
|
||||||
$filepath =~ s/^.*\///;
|
$filepath =~ s/^.*\///;
|
||||||
|
|
||||||
if ( $libls[$i] eq $filepath )
|
if ( $libls[$i] eq $filepath )
|
||||||
{
|
{
|
||||||
#print "PKG: '$pkg' '$libls[$i]' == '$filepath' \n";
|
#print "PKG: '$pkg' '$libls[$i]' == '$filepath' \n";
|
||||||
$pkgdeps[ $#pkgdeps ] = $pkg; $#pkgdeps++;
|
# Don't put duplicate entries into the pkg depend list.
|
||||||
}
|
if ( !defined( $pkghash{$pkg} ) )
|
||||||
|
{
|
||||||
|
$pkgdeps[ $#pkgdeps ] = $pkg; $#pkgdeps++;
|
||||||
|
$pkghash{$pkg} = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue