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: 17-Jul-2003 20:41:30
Branch: HEAD Handle: 2003071719412900
Modified files:
openpkg-re speclint.pl
Log:
add shtool check to prevent use of constant "root"; fix PR#205
Summary:
Revision Changes Path
1.34 +8 -0 openpkg-re/speclint.pl
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-re/speclint.pl
============================================================================
$ cvs diff -u -r1.33 -r1.34 speclint.pl
--- openpkg-re/speclint.pl 17 Jul 2003 15:43:13 -0000 1.33
+++ openpkg-re/speclint.pl 17 Jul 2003 18:41:29 -0000 1.34
@@ -841,5 +841,13 @@
&lint_warning($file, $done, $this, "deprecated usage of \"shtool install -e
[EMAIL PROTECTED]@\" (expected use of %{l_value ...})");
$done .= $this;
}
+
+ # check for constant "root" in %attr
+ my $done = ''; my $this = ''; my $todo = $spec;
+ while ($todo =~ m/%attr\(\s*(\d+)\s*,\s*root\s*,/s) {
+ $done .= $`; $this = $&; $todo = $';
+ &lint_warning($file, $done, $this, "found constant \"root\" in %attr
(expected variable %{l_susr})");
+ $done .= $this;
+ }
}
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]