+2007-12-27 Guillem Jover <guillem@debian.org>
+
+ * scripts/update-alternatives.pl (gl): Use defined instead of length.
+
2007-12-27 Guillem Jover <guillem@debian.org>
* scripts/update-alternatives.pl (set_links): New function.
[ Guillem Jover ]
* Ignore the man pages when building without NLS support. Closes: #457673
+ * Fix perl warnings:
+ - Check for undefined values when reading from the alternative db.
[ Updated dpkg translations ]
* Swedish (Peter Karlsson)
}
sub gl {
$!=0; $_= <AF>;
- length($_) || &quit(sprintf(_g("error or eof reading %s for %s (%s)"), "$admindir/$name", $_[0], $!));
+ defined($_) || quit(sprintf(_g("error or eof reading %s for %s (%s)"),
+ "$admindir/$name", $_[0], $!));
s/\n$// || &badfmt(sprintf(_g("missing newline after %s"), $_[0]));
$_;
}