diff options
author | joey <joey> | 2000-10-03 19:35:32 +0000 |
---|---|---|
committer | joey <joey> | 2000-10-03 19:35:32 +0000 |
commit | 997faf950ed3e3fbb05d599ef739c9fe0aa7121d (patch) | |
tree | 8d2f830259b563f924743f3e534b35e5aee73843 /dh_makeshlibs | |
parent | b2b388b4d237da2e6b72a2fef141a9535ecdc36a (diff) |
r376: * Rats, the previous change makes duplicate lines be created in the
shlibs file, and lintian conplains. Added some hackery that should
prevent that. Closes: #73052
Diffstat (limited to 'dh_makeshlibs')
-rwxr-xr-x | dh_makeshlibs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/dh_makeshlibs b/dh_makeshlibs index bfded282..66781c7e 100755 --- a/dh_makeshlibs +++ b/dh_makeshlibs @@ -8,6 +8,8 @@ init(); foreach $PACKAGE (@{$dh{DOPACKAGES}}) { $TMP=tmpdir($PACKAGE); + my %seen; + doit("rm", "-f", "$TMP/DEBIAN/shlibs"); open (FIND, "find $TMP -xtype f -name '*.so.*' |"); @@ -34,7 +36,12 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { } if (defined($library) && defined($major) && defined($deps) && $library ne '' && $major ne '' && $deps ne '') { - complex_doit("echo '$library $major $deps' >>$TMP/DEBIAN/shlibs"); + # Prevent duplicate lines from entering the file. + my $line="$library $major $deps"; + if (! $seen{$line}) { + $seen{$line}=1; + complex_doit("echo '$line' >>$TMP/DEBIAN/shlibs"); + } } } close FIND; |