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:   24-Mar-2003 15:56:05
  Branch: HEAD                             Handle: 2003032414560500

  Modified files:
    openpkg-re              speclint.pl

  Log:
    allow variable in Release and do not complain about bootstrap package
    and missing dependencies

  Summary:
    Revision    Changes     Path
    1.3         +6  -1      openpkg-re/speclint.pl
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-re/speclint.pl
  ============================================================================
  $ cvs diff -u -r1.2 -r1.3 speclint.pl
  --- openpkg-re/speclint.pl    24 Mar 2003 11:07:42 -0000      1.2
  +++ openpkg-re/speclint.pl    24 Mar 2003 14:56:05 -0000      1.3
  @@ -285,7 +285,7 @@
           m:Group:^[A-Z][a-zA-Z0-9]+$
           m:License:.+
           m:Version:^[^-]+$
  -        
m:Release:^(([1-9]\.)?20[0-9][0-9](0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[01])|[1-9]\.[0-9]\.\d+)$
  +        
m:Release:^(([1-9]\.)?20[0-9][0-9](0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[01])|[1-9]\.[0-9]\.\d+|%\{[^\}]+\})$
           m:Source\d+:^((https?|ftp)://.+|[^/]+)$
           o:Patch\d+:^((https?|ftp)://.+|[^/]+)$
           m:Prefix:^%{l_prefix}$
  @@ -334,6 +334,11 @@
       foreach my $header (@headers) {
           my ($type, $name, $regex) = split(/:/, $header, 3);
           if ($type eq 'm') {
  +            if ($file =~ m|openpkg\.spec$| and 
  +                ($name eq "BuildPreReq" or $name eq "PreReq")) {
  +                #   the bootstrap package is an obvious exception
  +                next;
  +            }
               if (not grep(/^$name$/, @seen)) {
                   &lint_error($file, undef, undef, "mandatory RPM header \"$name\" 
not found");
               }
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to