OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-re Date: 02-Oct-2003 20:29:23
Branch: HEAD Handle: 2003100219292300
Modified files:
openpkg-re speclint.pl
Log:
teach speclint about build-in RPM macros
Summary:
Revision Changes Path
1.52 +1 -1 openpkg-re/speclint.pl
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-re/speclint.pl
============================================================================
$ cvs diff -u -r1.51 -r1.52 speclint.pl
--- openpkg-re/speclint.pl 19 Sep 2003 11:54:34 -0000 1.51
+++ openpkg-re/speclint.pl 2 Oct 2003 18:29:23 -0000 1.52
@@ -978,7 +978,7 @@
while ($todo =~ m|\%\{([a-zA-Z][a-zA-Z0-9_]+)|s) {
$done .= $`; $this = $&; $todo = $';
my $name = $1;
- next if ($name =~ m/^(SOURCE|PATCH)\d*$/ or $name eq 'expand');
+ next if ($name =~ m/^(SOURCE|PATCH)\d*$/ or $name =~
m/^(expand|echo|warn|error)$/);
if (not grep(/^\Q$name\E$/, @ok)) {
&lint_error($file, $done, $this, "unknown macro \"\%{$name}\"");
}
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]