summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Deps.pm
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 /scripts/Dpkg/Deps.pm
parentf7488217a506871f1aed58373220a76ea2e170ab (diff)
downloaddpkg-83272497c5be8c4e703ab179906cf904465fe775.tar.gz
Dpkg::Deps: Accept $archqual for add_provided_package() method
Diffstat (limited to 'scripts/Dpkg/Deps.pm')
-rw-r--r--scripts/Dpkg/Deps.pm14
1 files changed, 10 insertions, 4 deletions
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().