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:   04-Feb-2004 01:06:55
  Branch: HEAD                             Handle: 2004020400065500

  Modified files:
    openpkg-re              src2make.pl

  Log:
    revamp to use new Class: header

  Summary:
    Revision    Changes     Path
    1.52        +4  -3      openpkg-re/src2make.pl
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-re/src2make.pl
  ============================================================================
  $ cvs diff -u -r1.51 -r1.52 src2make.pl
  --- openpkg-re/src2make.pl    4 Feb 2004 00:06:10 -0000       1.51
  +++ openpkg-re/src2make.pl    4 Feb 2004 00:06:55 -0000       1.52
  @@ -209,7 +209,7 @@
   
       #   query source RPM package
       my $q = '';
  -    foreach my $t (qw(Name Version Release Distribution)) {
  +    foreach my $t (qw(Name Version Release Distribution Class)) {
           $q .= "S-$t:<%{$t}>\n";
       }
       $q .= "[M-BuildPreReq:<%{REQUIRENAME} %|REQUIREFLAGS?{%{REQUIREFLAGS:depflags} 
%{REQUIREVERSION}}:{}|>\n]";
  @@ -220,11 +220,12 @@
       my $pkg_version      = $r->{Version};
       my $pkg_release      = $r->{Release};
       my $pkg_distribution = $r->{Distribution};
  +    my $pkg_class        = $r->{Class};
       my $pkg_breq         = $r->{BuildPreReq};
   
       #   apply include/exclude class filter
  -    if (not $pkg_distribution =~ m|\[(\w+)\]|) {
  -        print STDERR "$progname:WARNING: skipping unclassified $pkg_distribution\n";
  +    if (not $pkg_class =~ m/^(CORE|BASE|PLUS|PRIV|EVAL|JUNK)$/) {
  +        print STDERR "$progname:WARNING: skipping unknown $pkg_class\n";
           next SRCRPM;
       }
       if (defined @classcheck) {
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to