[SCM] Debian package checker branch, master, updated. 2.2.6-32-gfd2b611
The following commit has been merged in the master branch:
commit fd2b611d7fe4e470f6364ca571c89d71bcfc4065
Author: Adam D. Barratt <adam@adam-barratt.org.uk>
Date: Tue Mar 3 22:05:54 2009 +0000
Use $info->relation rather than an explicit Lintian::Relation object
diff --git a/checks/files b/checks/files
index 6233cf1..716f1ca 100644
--- a/checks/files
+++ b/checks/files
@@ -23,7 +23,6 @@ use strict;
use Tags;
use Util;
use Lintian::Data;
-use Lintian::Relation;
our $FONT_PACKAGES;
@@ -332,13 +331,8 @@ foreach my $file (sort keys %{$info->index}) {
# so that the symlinks will be sorted out first on a sarge upgrade.
elsif ($file =~ m,^usr/(?:include|lib)/X11(/|\Z),
&& !$warned_x11_predepends && $pkg ne 'x11-common') {
- my $pre_depends = '';
- if (defined $info->field('pre-depends')) {
- $pre_depends = $info->field('pre-depends');
- }
- $pre_depends = Lintian::Relation->new($pre_depends);
tag "file-in-usr-something-x11-without-pre-depends", "$file"
- unless $pre_depends->implies('x11-common (>= 1:7.0.0)');
+ unless $info->relation('pre-depends')->implies('x11-common (>= 1:7.0.0)');
# Always set this so that we don't redo the check, even if we
# didn't warn. If the first instance didn't warn, none will.
--
Debian package checker
Reply to: