OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Michael van Elst
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   26-Jun-2003 14:48:45
  Branch: HEAD                             Handle: 2003062613484400

  Modified files:
    openpkg-src/openpkg-tool
                            openpkg-build.pl

  Log:
    prefer packages that come with full sources

  Summary:
    Revision    Changes     Path
    1.88        +17 -1      openpkg-src/openpkg-tool/openpkg-build.pl
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/openpkg-tool/openpkg-build.pl
  ============================================================================
  $ cvs diff -u -r1.87 -r1.88 openpkg-build.pl
  --- openpkg-src/openpkg-tool/openpkg-build.pl 26 Jun 2003 12:04:43 -0000      1.87
  +++ openpkg-src/openpkg-tool/openpkg-build.pl 26 Jun 2003 12:48:44 -0000      1.88
  @@ -1246,7 +1246,23 @@
               return;
           }
       }
  -    
  +
  +    #
  +    # prefer full-source packages
  +    #
  +    if (scalar(@recs) > 1) {
  +        @nrecs = grep {
  +            ! $_->{nosource} ||
  +            ! @{$_->{nosource}}
  +        } @recs;
  +        unless (@nrecs) {
  +            @nrecs = grep {
  +                $_->{href} !~ /\.nosrc.rpm$/
  +            } @recs;
  +        }
  +        @recs = @nrecs if @nrecs;
  +    }
  +
       #
       # nothing left -> exit
       #
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to