Changeset 728 for devel/pb/bin/pb


Ignore:
Timestamp:
Mar 7, 2009, 3:10:05 AM (11 years ago)
Author:
Bruno Cornec
Message:
  • If this is a test version (aka testver = true) then the tag is forced to 0.date to allow for easy updates, including with official versions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r727 r728  
    495495
    496496    foreach my $pbpkg (@pkgs) {
     497        my ($testver) = pb_conf_get_if("testver");
    497498        $ENV{'PBPKG'} = $pbpkg;
     499
    498500        if ((defined $pkgv) && (defined $pkgv->{$pbpkg})) {
    499501            $pbver = $pkgv->{$pbpkg};
     
    501503            $pbver = $ENV{'PBPROJVER'};
    502504        }
    503         if ((defined $pkgt) && (defined $pkgt->{$pbpkg})) {
     505        # If it's a test version, then tag == 0.date
     506        if (defined $testver->{$ENV{'PBPROJ'}}) {
     507            $pbtag = "0.".strftime("%Y%m%d%H%M%S", @date);
     508            $ENV{'PBPROJTAG'} = $pbtag;
     509        } elsif ((defined $pkgt) && (defined $pkgt->{$pbpkg})) {
    504510            $pbtag = $pkgt->{$pbpkg};
    505511        } else {
     
    530536
    531537        # Generated fake content for test versions to speed up stuff
    532         my ($testver) = pb_conf_get_if("testver");
    533538        my $chglog;
    534539
Note: See TracChangeset for help on using the changeset viewer.