summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2017-02-06 03:52:50 +0100
committerGuillem Jover <guillem@debian.org>2018-03-25 05:45:47 +0200
commit83272497c5be8c4e703ab179906cf904465fe775 (patch)
tree6990ee5bd2ccc0bb86a8ad7709071c38d220bb75
parentf7488217a506871f1aed58373220a76ea2e170ab (diff)
downloaddpkg-83272497c5be8c4e703ab179906cf904465fe775.tar.gz
Dpkg::Deps: Accept $archqual for add_provided_package() method
-rw-r--r--debian/changelog1
-rw-r--r--scripts/Dpkg/Deps.pm14
-rwxr-xr-xscripts/dpkg-checkbuilddeps.pl2
-rwxr-xr-xscripts/dpkg-genbuildinfo.pl3
-rwxr-xr-xscripts/dpkg-gencontrol.pl3
5 files changed, 16 insertions, 7 deletions
diff --git a/debian/changelog b/debian/changelog
index efd84ec45..a73e91077 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -60,6 +60,7 @@ dpkg (1.19.1) UNRELEASED; urgency=medium
- Dpkg::Source::Package: Print building lines for upstream tarball
signatures. Closes: #888787
- Dpkg::Deps: Turn virtualpkg tracking from an arrayyref into a hashref.
+ - Dpkg::Deps: Accept $archqual for add_provided_package() method.
* Documentation:
- Update gettext minimal version in README.
- Add a missing dot on the dpkg-buildflags(1) «lfs» feature paragraph.
diff --git a/scripts/Dpkg/Deps.pm b/scripts/Dpkg/Deps.pm
index df8d9f4ec..3612eb303 100644
--- a/scripts/Dpkg/Deps.pm
+++ b/scripts/Dpkg/Deps.pm
@@ -49,7 +49,7 @@ All the deps_* functions are exported by default.
use strict;
use warnings;
-our $VERSION = '1.06';
+our $VERSION = '1.07';
our @EXPORT = qw(
deps_concat
deps_parse
@@ -1413,18 +1413,20 @@ sub add_installed_package {
push @{$self->{pkg}{$pkg}}, $p;
}
-=item $facts->add_provided_package($virtual, $relation, $version, $by)
+=item $facts->add_provided_package($virtual, $relation, $version, $by, $archqual)
Records that the "$by" package provides the $virtual package. $relation
and $version correspond to the associated relation given in the Provides
-field (if present).
+field (if present). $archqual corresponds to the package arch qualifier
+(if present).
=cut
sub add_provided_package {
- my ($self, $pkg, $rel, $ver, $by) = @_;
+ my ($self, $pkg, $rel, $ver, $by, $archqual) = @_;
my $v = {
package => $pkg,
+ archqual => $archqual,
relation => $rel,
version => $ver,
provider => $by,
@@ -1536,6 +1538,10 @@ sub _evaluate_simple_dep {
=head1 CHANGES
+=head2 Version 1.07 (dpkg 1.19.1)
+
+New argument: Add $archqual to $dep->add_provided_package().
+
=head2 Version 1.06 (dpkg 1.18.7; module version bumped on dpkg 1.18.24)
New option: Add tests_dep option to Dpkg::Deps::deps_parse().
diff --git a/scripts/dpkg-checkbuilddeps.pl b/scripts/dpkg-checkbuilddeps.pl
index 80b309f14..738afa042 100755
--- a/scripts/dpkg-checkbuilddeps.pl
+++ b/scripts/dpkg-checkbuilddeps.pl
@@ -173,7 +173,7 @@ sub parse_status {
{
$facts->add_provided_package($_->{package},
$_->{relation}, $_->{version},
- $package);
+ $package, $_->{archqual});
}
}
}
diff --git a/scripts/dpkg-genbuildinfo.pl b/scripts/dpkg-genbuildinfo.pl
index 96b06093a..c2916c2b2 100755
--- a/scripts/dpkg-genbuildinfo.pl
+++ b/scripts/dpkg-genbuildinfo.pl
@@ -115,7 +115,8 @@ sub parse_status {
deps_iterate($provides, sub {
my $dep = shift;
$facts->add_provided_package($dep->{package}, $dep->{relation},
- $dep->{version}, $package);
+ $dep->{version}, $package,
+ $dep->{archqual});
});
}
diff --git a/scripts/dpkg-gencontrol.pl b/scripts/dpkg-gencontrol.pl
index 1c92e66dd..517db351b 100755
--- a/scripts/dpkg-gencontrol.pl
+++ b/scripts/dpkg-gencontrol.pl
@@ -263,7 +263,8 @@ if (exists $pkg->{'Provides'}) {
if ($subdep->isa('Dpkg::Deps::Simple')) {
$facts->add_provided_package($subdep->{package},
$subdep->{relation}, $subdep->{version},
- $fields->{'Package'});
+ $fields->{'Package'},
+ $subdep->{archqual});
}
}
}