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

  Server: cvs.openpkg.org                  Name:   Michael van Elst
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-re                       Date:   21-Nov-2002 10:56:54
  Branch: HEAD                             Handle: 2002112109565400

  Modified files:
    openpkg-re              openpkg-build

  Log:
    fix option parser

  Summary:
    Revision    Changes     Path
    1.40        +2  -1      openpkg-re/openpkg-build
  ____________________________________________________________________________

  Index: openpkg-re/openpkg-build
  ============================================================
  $ cvs diff -u -r1.39 -r1.40 openpkg-build
  --- openpkg-re/openpkg-build  21 Nov 2002 09:45:49 -0000      1.39
  +++ openpkg-re/openpkg-build  21 Nov 2002 09:56:54 -0000      1.40
  @@ -52,7 +52,7 @@
           } elsif (/^-(\w)(.*)/) {
               if (exists $optf{$1}) {
                   if (length($optf{$1}) > 1) {
  -                    if (defined $2) {
  +                    if ($2 ne '') {
                           if (exists $opts{$1}) {
                               $opts{$1} .= " $2";
                           } else {
  @@ -241,6 +241,7 @@
   
       if ($rel =~ /^\d+$/) {
           print "# $PROG current($rel)\n";
  +        print "# using '$RPM_NPRIV' (build) and '$RPM_PRIV' (install)\n";
           $url = "ftp://ftp.openpkg.org/current/SRC/";;
       } elsif ($rel =~ /^(\d+\.\d+)/) {
           $rel = $1;
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to