Просмотр исходного кода

Dpkg::BuildFlags: Use a hash instead of a ref to a hash for keys()

This causes compilation failures with older perl versions, which can
be an issue with partial upgrades.

Reported-by: Leopold Palomo-Avellaneda <leo@alaxarxa.net>
Guillem Jover лет назад: 13
Родитель
Сommit
5ff9e21985
2 измененных файлов с 4 добавлено и 1 удалено
  1. 3 0
      debian/changelog
  2. 1 1
      scripts/Dpkg/BuildFlags.pm

+ 3 - 0
debian/changelog

@@ -22,6 +22,9 @@ dpkg (1.16.9) UNRELEASED; urgency=low
     action at all. LP: #1037431
   * Fix memory leak in dpkg filesavespackage().
   * Do not print garbage (or worse) on dpkg shared conffile debug output.
+  * Use a hash instead of a ref to a hash for keys() in Dpkg::BuildFlags
+    get_feature_areas(). This causes compilation failures with older perl
+    versions, which can be an issue with partial upgrades.
 
   [ Updated programs translations ]
   * Czech (Miroslav Kure).

+ 1 - 1
scripts/Dpkg/BuildFlags.pm

@@ -345,7 +345,7 @@ true for).
 
 sub get_feature_areas {
     my ($self) = @_;
-    return keys $self->{'features'};
+    return keys %{$self->{'features'}};
 }
 
 =item $bf->get_features($area)