[SCM] Debian package checker branch, master, updated. 2.4.3-196-g89887aa
The following commit has been merged in the master branch:
commit e31da367376751ea9f98462a3458fe8a432acee2
Author: Niels Thykier <niels@thykier.net>
Date: Thu Jan 27 17:32:00 2011 +0100
Sort the files in debian/ in the debhelper check
The check internal debhelper files would otherwise be sensitive to
the order readdir returns the files in.
diff --git a/checks/debhelper b/checks/debhelper
index cc772bc..46ec858 100644
--- a/checks/debhelper
+++ b/checks/debhelper
@@ -255,7 +255,7 @@ if ($seendhcleank and $level >= 7) {
my @indebfiles = ();
opendir(DEBIAN, 'debfiles')
or fail("Can't open debfiles directory.");
-while (defined(my $file=readdir(DEBIAN))) {
+foreach my $file (sort readdir(DEBIAN)) {
if ($file =~ m/^(?:(.*)\.)?(?:post|pre)(?:inst|rm)$/) {
next unless $needtomodifyscripts;
--
Debian package checker
Reply to: