Package: pkg-components
Severity: serious
Version: 0.5
Tags: patch
Control: block 719392 by -1

Debian::Debhelper::Dh_components uses Debian::Control, but this
module's API got updated with regards to the ->binary method, which
now returns the actual tied hash instead of the Tie::IxHash object.
A new binary_tie method was introduced to keep the old behavior. See
also: #712432.

Regards,
-- 
 --------------------------------------------------------------- 
| Olof Johansson                              http://stdlib.se/ |
|  irc: zibri                           https://github.com/olof |
 --------------------------------------------------------------- 
>From f67b12931d78d585fdea5f54d79c33fc5e9e6329 Mon Sep 17 00:00:00 2001
From: Olof Johansson <o...@ethup.se>
Date: Sun, 11 Aug 2013 14:50:58 +0200
Subject: [PATCH] Debian::Control changed API wrt ->binary

The ->binary method no longers return a Tie::IxHash object, but rather
the tied hash. A ->binary_tie method was introduced for the old behavior.
---
 Build.PL                              | 1 +
 lib/Debian/Debhelper/Dh_components.pm | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/Build.PL b/Build.PL
index 36d1030..8974f80 100644
--- a/Build.PL
+++ b/Build.PL
@@ -12,6 +12,7 @@ my $builder = Module::Build->new(
     },
     requires => {
         'version'    => 0,
+        'Debian::Control' => 0.77,
     },
     create_makefile_pl => 'traditional',
     add_to_cleanup      => [ 'Debian-Debhelper-Dh_components-*' ],
diff --git a/lib/Debian/Debhelper/Dh_components.pm b/lib/Debian/Debhelper/Dh_components.pm
index 5bdc641..4561c6e 100644
--- a/lib/Debian/Debhelper/Dh_components.pm
+++ b/lib/Debian/Debhelper/Dh_components.pm
@@ -138,7 +138,7 @@ sub _read_substvars {
     my $component = shift;
     my $control = Debian::Control->new;
     $control->read($filename);
-    my ($binary) = $control->binary->Values(0);
+    my ($binary) = $control->binary_tie->Values(0);
     foreach my $type (@DEPENDENCY_TYPES) {
         my $filetype = $type;
         $filetype =~ s{_}{-}gxms;
-- 
1.8.3.2

Reply via email to