@@ -1,3 +1,9 @@
+2007-12-12 Guillem Jover <guillem@debian.org>
+
+ * scripts/dpkg-gencontrol.pl (spfileslistvalue): Use || to fallback to
+ a default value instead of using a temporary variable and checking if
+ it's not defined.
2007-12-12 Guillem Jover <guillem@debian.org>
* scripts/dpkg-genchanges.pl: Use ||= instead of checking if the
@@ -85,9 +85,7 @@ Options:
sub spfileslistvalue($)
{
- my $r = $f{$_[0]};
- $r = '-' if !defined($r);
- return $r;
+ return $f{$_[0]} || '-';
}