[SCM] Debian package checker branch, master, updated. 2.4.3-35-gc3209ba

2010-12-23 Thread Niels Thykier
The following commit has been merged in the master branch:
commit 8bf3d100f769b9166ca73dcdaa995df0e6196d65
Author: Niels Thykier ni...@thykier.net
Date:   Thu Dec 23 19:25:36 2010 +0100

Since the empty directory check is skipped for base-files, we
might as well not loop over all the files in the package for it.
This also saves a $pkg eq 'base-files' in every iteration for other
packages.

diff --git a/checks/files b/checks/files
index 07b7fea..f575361 100644
--- a/checks/files
+++ b/checks/files
@@ -1204,15 +1204,16 @@ if ($pkg_section !~ m,games$, and $games  0 and $other 
== 0) {
 # so just ignore them.
 #
 # python-support needs a directory for each package even it might be empty
-foreach my $dir (@{$info-sorted_index}) {
-next if $dir eq  or $info-index-{$dir}-{type} ne 'd';
-next if ($dir =~ m{^var/} or $dir =~ m{^etc/});
-next if $pkg eq 'base-files';
-if (dir_counts($info, $dir) == 0) {
-   if ($dir ne 'usr/lib/perl5/'
-   and $dir ne 'usr/share/perl5/'
-   and $dir !~ m;^usr/share/python-support/;) {
-   tag package-contains-empty-directory, $dir;
+if($pkg ne 'base-files'){
+foreach my $dir (@{$info-sorted_index}) {
+   next if $dir eq  or $info-index-{$dir}-{type} ne 'd';
+   next if ($dir =~ m{^var/} or $dir =~ m{^etc/});
+   if (dir_counts($info, $dir) == 0) {
+   if ($dir ne 'usr/lib/perl5/'
+   and $dir ne 'usr/share/perl5/'
+   and $dir !~ m;^usr/share/python-support/;) {
+   tag package-contains-empty-directory, $dir;
+   }
}
 }
 }

-- 
Debian package checker


-- 
To UNSUBSCRIBE, email to debian-lint-maint-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1pvqng-0004pg...@alioth.debian.org



[SCM] Debian package checker branch, master, updated. 2.4.3-35-gc3209ba

2010-12-23 Thread Niels Thykier
The following commit has been merged in the master branch:
commit c3209bad13e449c694c29aa3e2547f0271529eb9
Author: Niels Thykier ni...@thykier.net
Date:   Thu Dec 23 19:56:10 2010 +0100

Fixed test regressions caused by description-synopsis-starts-with-article.

diff --git a/t/debs/description-synopsis-spaces/control 
b/t/debs/description-synopsis-spaces/control
index 59c2fe4..6b31a2c 100644
--- a/t/debs/description-synopsis-spaces/control
+++ b/t/debs/description-synopsis-spaces/control
@@ -4,7 +4,7 @@ Architecture: all
 Maintainer: Debian Lintian Maintainers lintian-ma...@debian.org
 Section: devel
 Priority: extra
-Description: the synopsis starts with spaces
+Description: synopsis starts with spaces
  This is a test package designed to exercise some feature or tag of
  Lintian.  It is part of the Lintian test suite and may do very odd
  things.  It should not be installed like a regular package.  It may
diff --git a/t/tests/basic-3.0-native/desc b/t/tests/basic-3.0-native/desc
index 26e174f..36b9003 100644
--- a/t/tests/basic-3.0-native/desc
+++ b/t/tests/basic-3.0-native/desc
@@ -1,4 +1,4 @@
 Testname: basic-3.0-native
 Sequence: 0001
 Version: 1.0
-Description: A basic test of a native 3.0 package
+Description: Basic test of a native 3.0 package
diff --git a/t/tests/basic-with-epoch/desc b/t/tests/basic-with-epoch/desc
index 0e30cdc..f5ae926 100644
--- a/t/tests/basic-with-epoch/desc
+++ b/t/tests/basic-with-epoch/desc
@@ -1,4 +1,4 @@
 Testname: basic-with-epoch
 Sequence: 0001
 Version: 1:1.0
-Description: A basic test of a native package with an epoch
+Description: Basic test of a native package with an epoch
diff --git a/t/tests/unpack-slashes-in-field-name/desc 
b/t/tests/unpack-slashes-in-field-name/desc
index b938d18..14ac1df 100644
--- a/t/tests/unpack-slashes-in-field-name/desc
+++ b/t/tests/unpack-slashes-in-field-name/desc
@@ -1,4 +1,4 @@
 Testname: unpack-slashes-in-field-name
 Sequence: 3500
 Version: 1.0
-Description: A test package with slashes in a control field name
+Description: Test package with slashes in a control field name

-- 
Debian package checker


-- 
To UNSUBSCRIBE, email to debian-lint-maint-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1pvqnw-0004q9...@alioth.debian.org