Author: rra
Date: 2008-04-29 02:52:38 +0200 (Tue, 29 Apr 2008)
New Revision: 1285

Modified:
   trunk/checks/scripts
   trunk/debian/changelog
Log:
  + [RA] If the call to some supporting program like update-inetd is
    conditional on the existence of the program, assume the maintainer
    knows what they're doing and don't warn.

Modified: trunk/checks/scripts
===================================================================
--- trunk/checks/scripts        2008-04-26 04:30:46 UTC (rev 1284)
+++ trunk/checks/scripts        2008-04-29 00:52:38 UTC (rev 1285)
@@ -691,12 +691,16 @@
            for my $rule (@depends_needed) {
                my ($package, $regex) = @$rule;
                if ($pkg ne $package and /$regex/ and ! $warned{$package}) {
-                    my $needed = Dep::parse($package);
-                    unless (Dep::implies($deps{depends}, $needed) || 
Dep::implies($deps{'pre-depends'}, $needed)) {
-                       my $shortpackage = $package;
-                       $shortpackage =~ s/[ \(].*//;
-                       tag "maintainer-script-needs-depends-on-$shortpackage", 
"$file";
+                   if (m,-x\s+\S*$regex, or m,which\s+$regex, or 
m,command\s+.*?$regex,) {
                        $warned{$package} = 1;
+                   } else {
+                       my $needed = Dep::parse($package);
+                       unless (Dep::implies($deps{depends}, $needed) || 
Dep::implies($deps{'pre-depends'}, $needed)) {
+                           my $shortpackage = $package;
+                           $shortpackage =~ s/[ \(].*//;
+                           tag 
"maintainer-script-needs-depends-on-$shortpackage", "$file";
+                           $warned{$package} = 1;
+                       }
                    }
                }
            }

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog      2008-04-26 04:30:46 UTC (rev 1284)
+++ trunk/debian/changelog      2008-04-29 00:52:38 UTC (rev 1285)
@@ -59,6 +59,9 @@
       Hideki Yamane.  (Closes: #476417)
     + [RA] Add inetutils-inetd and xinetd as additional update-inetd
       providers.  Patch from Guillem Jover.  (Closes: #474077)
+    + [RA] If the call to some supporting program like update-inetd is
+      conditional on the existence of the program, assume the maintainer
+      knows what they're doing and don't warn.
   * checks/shared-libs:
     + [RA] Move the default ld.so search path into data.  Drop obsolete
       /usr/lib/libg++-dbg, /usr/X11R6/lib/Xaw3d, and libc5 compatibility


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

Reply via email to