[SCM] Debian package checker branch, master, updated. 2.2.3-4-g95b1e8a
The following commit has been merged in the master branch:
commit 0b4b20e3d8f1bb595c4bbc160681b530dbbdde91
Author: Russ Allbery <rra@debian.org>
Date: Sun Feb 8 22:51:00 2009 -0800
Use Lintian::Collect's relation method in checks/copyright-file
diff --git a/checks/copyright-file b/checks/copyright-file
index 4c870f4..d9e47aa 100644
--- a/checks/copyright-file
+++ b/checks/copyright-file
@@ -24,7 +24,6 @@ use strict;
use lib "$ENV{'LINTIAN_ROOT'}/checks/";
use common_data;
-use Dep;
use Spelling;
use Tags;
use Util;
@@ -315,12 +314,7 @@ if ($gpl || m,/usr/share/common-licenses/GPL,) {
sub depends_on {
my ($info, $package) = @_;
return 1 if $known_essential{$package};
- my $deps = $info->field('pre-depends') || '';
- if ($info->field('depends')) {
- $deps .= ', ' if $deps;
- $deps .= $info->field('depends');
- }
- return 1 if Dep::implies(Dep::parse($deps), Dep::parse($package));
+ return 1 if $info->relation('strong')->implies($package);
return 0;
}
diff --git a/debian/changelog b/debian/changelog
index c8f5441..91e73a4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,8 @@ lintian (2.2.4) UNRELEASED; urgency=low
+ [RA] Use Lintian::Relation::Version instead of Dep.
* checks/control-file:
+ [RA] Use Lintian::Relation instead of Dep.
+ * checks/copyright-file:
+ + [RA] Use Lintian::Collect for dependency information.
-- Russ Allbery <rra@debian.org> Sun, 08 Feb 2009 22:06:34 -0800
--
Debian package checker
Reply to: