[SCM] Debian native package for Config::Model::Dpkg branch, master, updated. debian/2.036-17-gdc3acc3
Dominique Dumont
dod at debian.org
Mon May 20 14:21:14 UTC 2013
The following commit has been merged in the master branch:
commit b2714c2bcc7d1598d3e67a1a2d55a604472722bf
Author: Dominique Dumont <dod at debian.org>
Date: Mon May 20 16:00:10 2013 +0200
fixed grammar to parse arch restriction correctly
diff --git a/lib/Config/Model/Dpkg/Dependency.pm b/lib/Config/Model/Dpkg/Dependency.pm
index 15b66ea..b1b2320 100644
--- a/lib/Config/Model/Dpkg/Dependency.pm
+++ b/lib/Config/Model/Dpkg/Dependency.pm
@@ -81,13 +81,13 @@ pkg_dep: pkg_name dep_version(?) arch_restriction(?) {
my $dv = $item[2] ;
my $ar = $item[3] ;
my @ret = ( $item{pkg_name} ) ;
- if (@$dv and @$ar) { push @ret, @$dv, @$ar ;}
+ if (@$dv and @$ar) { push @ret, @{$dv->[0]}, @{$ar->[0]} ;}
elsif (@$dv) { push @ret, @{$dv->[0]} ;}
elsif (@$ar) { push @ret, undef, undef, @{$ar->[0]} ;}
$return = \@ret ; ;
}
-arch_restriction: '[' osarch(s /,/) ']' { $return = $item[2] ;}
+arch_restriction: '[' osarch(s) ']' { $return = $item[2] ;}
dep_version: '(' oper version ')' { $return = [ $item{oper}, $item{version} ] ;}
--
Debian native package for Config::Model::Dpkg
More information about the Pkg-perl-cvs-commits
mailing list