shlibs file, and lintian conplains. Added some hackery that should
prevent that. Closes: #73052
+debhelper (2.1.14) unstable; urgency=low
+
+ * 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
+
+ -- Joey Hess <joeyh@debian.org> Tue, 3 Oct 2000 12:32:22 -0700
+
debhelper (2.1.13) unstable; urgency=low
* Typo, Closes: #72932
foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
$TMP=tmpdir($PACKAGE);
+ my %seen;
+
doit("rm", "-f", "$TMP/DEBIAN/shlibs");
open (FIND, "find $TMP -xtype f -name '*.so.*' |");
}
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;