[SCM] Debian package checker branch, master, updated. 2.2.6-34-g1f67e5c
The following commit has been merged in the master branch:
commit c851ba2e2612ee3a951fb1a4943bb062d945fa25
Author: Adam D. Barratt <adam@adam-barratt.org.uk>
Date: Tue Mar 3 23:20:41 2009 +0000
Use Lintian::Relation in checks/shared-libs
diff --git a/checks/shared-libs b/checks/shared-libs
index c398219..32181e8 100644
--- a/checks/shared-libs
+++ b/checks/shared-libs
@@ -24,7 +24,7 @@ use strict;
use File::Basename;
use Lintian::Data;
-use Dep;
+use Lintian::Relation;
use Tags;
use Util;
@@ -239,7 +239,7 @@ my $provides = $pkg . "( = $version)";
if (defined $info->field('provides')) {
$provides .= ", " . $info->field('provides');
}
-$provides = Dep::parse($provides);
+$provides = Lintian::Relation->new($provides);
my %shlibs_control;
my %symbols_control;
@@ -328,7 +328,7 @@ if ($#shlibs == -1) {
my %seen;
@shlibs_depends = grep { !$seen{$_}++ } @shlibs_depends;
for my $depend (@shlibs_depends) {
- unless (Dep::implies($provides, Dep::parse($depend))) {
+ unless ($provides->implies($depend)) {
tag "shlibs-declares-dependency-on-other-package", $depend;
}
}
@@ -511,7 +511,7 @@ if ($#shlibs == -1 and not %unversioned_shlibs) {
my %seen;
@symbols_depends = grep { !$seen{$_}++ } @symbols_depends;
for my $depend (@symbols_depends) {
- unless (Dep::implies($provides, Dep::parse($depend))) {
+ unless ($provides->implies($depend)) {
tag "symbols-declares-dependency-on-other-package", $depend;
}
}
diff --git a/debian/changelog b/debian/changelog
index ea1f66f..3bf5cc3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -69,6 +69,7 @@ lintian (2.2.7) UNRELEASED; urgency=low
+ [ADB] Extend the parsing of dependency templates in symbols files to
handle ORed dependencies.
+ [RA] Be robust against whitespace in the Architecture field.
+ + [ADB] Use Lintian::Relation rather than Dep.
* checks/version-substvars:
+ [RA] Be robust against whitespace in the Architecture field.
Thanks, Gonéri Le Bouder. (Closes: #517555)
--
Debian package checker
Reply to: