summaryrefslogtreecommitdiff
path: root/dh_sameversiondep
diff options
context:
space:
mode:
authorModestas Vainius <modestas@vainius.eu>2010-04-22 10:18:10 +0300
committerModestas Vainius <modestas@vainius.eu>2010-04-22 10:58:58 +0300
commit055899a68a5a67a4860a2f134c66ffaaac505fc7 (patch)
treedf53025326b54206752d15999fce5d6678a7d7dd /dh_sameversiondep
parent792ebfb67e0fd4e3a327fc4f43b8472cf3dc1e56 (diff)
downloadpkg-kde-tools-055899a68a5a67a4860a2f134c66ffaaac505fc7.tar.gz
Make dh_sameversiondep work with libdpkg-perl (>= 1.15.6).
The bug was triggered by altered interface of Dpkg::Substvars. Thanks to Roderich Schupp for the patch (Closes: #577056).
Diffstat (limited to 'dh_sameversiondep')
-rwxr-xr-xdh_sameversiondep4
1 files changed, 2 insertions, 2 deletions
diff --git a/dh_sameversiondep b/dh_sameversiondep
index 5c225b6..82b4324 100755
--- a/dh_sameversiondep
+++ b/dh_sameversiondep
@@ -169,7 +169,7 @@ my $re_splitsubstvar = qr/^($re_pkgname)(?::($re_pkgname))?(?:-($re_fields))?$/;
# Global substvars file
my $g_substvars = new Dpkg::Substvars;
-$g_substvars->parse("debian/substvars") if (-r "debian/substvars");
+$g_substvars->load("debian/substvars") if (-r "debian/substvars");
sub extract_package_names {
my $val = shift;
@@ -201,7 +201,7 @@ sub Shlibsvars::new {
}, $cls);
$self->{substvars} = new Dpkg::Substvars;
if (-r $self->{file}) {
- $self->{substvars}->parse($self->{file});
+ $self->{substvars}->load($self->{file});
}
return $self;
}