The following commit has been merged in the master branch:
commit 6041c1eada2908ec1f0784f879fe0c1697751070
Author: Raphael Geissert <[email protected]>
Date:   Mon Apr 13 01:24:49 2009 -0500

    Beautify and optimise a bit the conffiles check script

diff --git a/checks/conffiles b/checks/conffiles
index 33c2d1d..6e5e2e4 100644
--- a/checks/conffiles
+++ b/checks/conffiles
@@ -40,23 +40,23 @@ my %conffiles = ();
 open(IN, '<', $cf) or fail("cannot open $cf for reading: $!");
 while (<IN>) {
     chop;
-    next if m/^\s*$/o;
+    next if m/^\s*$/;
 
-    $conffiles{"$_"}++;
-    if ($conffiles{"$_"} > 1) {
-       tag "duplicate-conffile", "$_";
+    $conffiles{$_}++;
+    if ($conffiles{$_} > 1) {
+       tag "duplicate-conffile", $_;
     }
 
-    if (m,^/?usr/,o) {
-       tag "file-in-usr-marked-as-conffile", "$_";
+    if (m,^/?usr/,) {
+       tag "file-in-usr-marked-as-conffile", $_;
     } else {
-       unless (m,^/?etc/,o) {
-           tag "non-etc-file-marked-as-conffile", "$_";
+       unless (m,^/?etc/,) {
+           tag "non-etc-file-marked-as-conffile", $_;
        }
     }
 
-    unless (m,^/,o) {
-       tag "relative-conffile", "$_";
+    unless (m,^/,) {
+       tag "relative-conffile", $_;
     }
 }
 close(IN);

-- 
Debian package checker


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to