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: 12-Sep-2003 14:59:00 Branch: HEAD Handle: 2003091213590000 Modified files: openpkg-re speclint.pl Log: teach speclint about the still unused but supported %check, %trigger* and %verifyscript sections Summary: Revision Changes Path 1.50 +7 -1 openpkg-re/speclint.pl ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-re/speclint.pl ============================================================================ $ cvs diff -u -r1.49 -r1.50 speclint.pl --- openpkg-re/speclint.pl 18 Aug 2003 18:20:26 -0000 1.49 +++ openpkg-re/speclint.pl 12 Sep 2003 12:59:00 -0000 1.50 @@ -481,12 +481,18 @@ %prep, %build, %install, + (%check,)? %files, %clean, (%pre,)? (%post,)? (%preun,)? (%postun,)? + (%trigger,)? + (%triggerin,)? + (%triggerun,)? + (%triggerpostun,)? + (%verifyscript,)? }; # check for order of headers @@ -607,7 +613,7 @@ my ($file, $spec) = @_; my $done = ''; my $this = ''; my $todo = $spec; - while ($todo =~ m/(\%(?:description|prep|build|install|files|clean|pre|post|preun|postun))([^\n]*)\n(.*?\n)(?=\%(?:description|prep|build|install|files|clean|pre|post|preun|postun)|$)/s) { + while ($todo =~ m/(\%(?:description|prep|build|install|check|files|clean|pre|post|preun|postun|trigger|triggerin|triggerun|triggerpostun|verifyscript))([^\n]*)\n(.*?\n)(?=\%(?:description|prep|build|install|check|files|clean|pre|post|preun|postun|trigger|triggerin|triggerun|triggerpostun|verifyscript)|$)/s) { $done .= $`; $this = $&; $todo = $'; my ($section, $args, $script) = ($1, $2, $3); @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List [EMAIL PROTECTED]