2007-11-22 Raphael Hertzog <hertzog@debian.org>
- * scripts/dpkg-shlibdeps.pl: Add more debug messages.
+ * scripts/dpkg-shlibdeps.pl: Add more debug messages. Accept empty
+ dependencies in shlibs files again.
2007-11-21 Raphael Hertzog <hertzog@debian.org>
Closes: #452262
* Add more debug messages to dpkg-shlibdeps to ease collecting information
in case of problems.
+ * dpkg-shlibdeps now accepts again empty dependencies in shlibs files.
[ Updated man pages translations ]
* Swedish (Peter Karlsson)
while (<SHLIBS>) {
s/\s*\n$//;
next if m/^\#/;
- if (!m/^\s*(?:(\S+):\s+)?(\S+)\s+(\S+)\s+(\S.*\S)\s*$/) {
+ if (!m/^\s*(?:(\S+):\s+)?(\S+)\s+(\S+)(?:\s+(\S.*\S))?\s*$/) {
warning(_g("shared libs info file \`%s' line %d: bad line \`%s'"),
$shlibfile, $., $_);
next;
}
+ my $depread = defined($4) ? $4 : '';
if (($libname eq $2) && ($libversion eq $3)) {
# Define dep and end here if the package type explicitely
# matches. Otherwise if the packagetype is not specified, use
# line
if (defined($1)) {
if ($1 eq $packagetype) {
- $dep = $4;
+ $dep = $depread;
last;
}
} else {
- $dep = $4 unless defined $dep;
+ $dep = $depread unless defined $dep;
}
}
}