[SCM] Debian package checker branch, master, updated. 1.24.2-26-ga32d6f1
The following commit has been merged in the master branch:
commit a32d6f1acef5b00d1876de982b120a8ef1d5b049
Author: Adam D. Barratt <adam@adam-barratt.org.uk>
Date: Fri Jul 25 01:39:39 2008 +0100
Don't chop() the contents of $info->field()
diff --git a/checks/cruft b/checks/cruft
index 762da7c..1738f5d 100644
--- a/checks/cruft
+++ b/checks/cruft
@@ -106,8 +106,7 @@ if ($info->native) {
# really belong here either.
my $arch;
if (defined $info->field('architecture')) {
- my $arch;
- chop($arch = $info->field('architecture'));
+ my $arch = $info->field('architecture');
if ($pkg =~ /-docs?$/ && $arch ne 'all') {
tag 'documentation-package-not-architecture-independent';
}
@@ -119,8 +118,7 @@ if (defined $info->field('architecture')) {
# config.guess and config.sub, and automake depends on autotools-dev.
$atdinbd = 0;
if (defined $info->field('build-depends')) {
- my $bd;
- chop($bd = $info->field('build-depends'));
+ my $bd = $info->field('build-depends');
$atdinbd = 1 if Dep::implies(Dep::parse($bd), Dep::parse($autotools_pkgs));
}
--
Debian package checker
Reply to: