OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Thomas Lotterer Root: /e/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-re Date: 07-Aug-2003 10:51:10 Branch: HEAD Handle: 2003080709510900 Modified files: openpkg-re rclint.pl Log: use rcService for checking enable, usable and active only; see PR#232 Summary: Revision Changes Path 1.16 +10 -0 openpkg-re/rclint.pl ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-re/rclint.pl ============================================================================ $ cvs diff -u -r1.15 -r1.16 rclint.pl --- openpkg-re/rclint.pl 21 Jul 2003 08:47:22 -0000 1.15 +++ openpkg-re/rclint.pl 7 Aug 2003 08:51:09 -0000 1.16 @@ -426,6 +426,16 @@ return; } + # check rcService only used for enable|usable|active PR#232 + $done = $outer_done; $this = ''; $todo = $outer_this; + while ( $todo =~ m/rcService\s+\w+\s+(\w+)/s ) { + $done .= $`; $this = $&; $todo = $'; + if ( $1 !~ m/^(enable|usable|active)$/ ) { + &lint_warning($file, $done, $this, "section $section: rcService must check for (enable|usable|active) only, found check for \"$1\""); + } + $done .= $this; + } + # check rcService short circuit $done = $outer_done; $this = ''; $todo = $outer_this; if ( $todo !~ m/^[^\n]+\n rcService \w+ enable yes \|\| exit 0\n/s ) { @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List [EMAIL PROTECTED]