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

  Server: cvs.openpkg.org                  Name:   Thomas Lotterer
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-registry                 Date:   28-Nov-2005 08:15:36
  Branch: HEAD                             Handle: 2005112807153600

  Modified files:
    openpkg-registry        registry-db.pl

  Log:
    database 0.[01].x upgrade to 0.2.0

  Summary:
    Revision    Changes     Path
    1.11        +6  -6      openpkg-registry/registry-db.pl
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-registry/registry-db.pl
  ============================================================================
  $ cvs diff -u -r1.10 -r1.11 registry-db.pl
  --- openpkg-registry/registry-db.pl   27 Nov 2005 00:00:18 -0000      1.10
  +++ openpkg-registry/registry-db.pl   28 Nov 2005 07:15:36 -0000      1.11
  @@ -205,11 +205,11 @@
           return 1;
       }
   
  -    #   0.0.x upgrade to 0.1.0 is a nop
  +    #   0.[01].x upgrade to 0.2.0 is a nop
       #
       elsif (    $dbv->{version}->{major} == 0
  -           and $dbv->{version}->{minor} == 0  ) {
  -        $sql = sprintf("UPDATE config SET value = '0.1.0';");
  +           and $dbv->{version}->{minor} <  2  ) {
  +        $sql = sprintf("UPDATE config SET value = '0.2.0';");
           $rv = $dbh->do($sql);
           print "$sql\nrv=".$rv." message=".$dbh->errstr."\n\n"; die if 
($dbh->errstr =~ m|ERROR|);
           return 1;
  @@ -327,11 +327,11 @@
           return 0;
       }
   
  -    #   0.0.x upgrade to 0.1.0 is a nop
  +    #   0.[01].x upgrade to 0.2.0 is a nop
       #
       elsif (    $dbv->{version}->{major} == 0
  -           and $dbv->{version}->{minor} == 0  ) {
  -        $sql = sprintf("UPDATE reg_config SET value = '0.1.0';");
  +           and $dbv->{version}->{minor} <  2  ) {
  +        $sql = sprintf("UPDATE reg_config SET value = '0.2.0';");
           $rv = $dbh->do($sql);
           print "$sql\nrv=".$rv." message=".$dbh->errstr."\n\n"; die if 
($dbh->errstr =~ m|ERROR|);
           return 1;
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to