Changeset 1432 in ProjectBuilder for devel/pb/lib/ProjectBuilder/Changelog.pm


Ignore:
Timestamp:
Mar 12, 2012, 10:24:41 PM (12 years ago)
Author:
Bruno Cornec
Message:

r4556@localhost: bruno | 2012-03-08 22:31:12 +0100

  • Adds a new extdir member to the pb structure, in order to manage the timestamp tag added in version name for test versions and have a complete correspondance between the tar file content, and the names. Should fix #99. This modification creates an incompatibility in the build part of pb, so requires that the build environment be updated before it's usable (with setupve|vm or sbx2setupve|vm)
  • This patch has been tested with .rpm and .deb test packages successfully. ebuild and solaris are to be tested.
  • Use the new extdir member to update existing projects filter
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/lib/ProjectBuilder/Changelog.pm

    r1262 r1432  
    6666my $pbver = $pb->{'ver'};
    6767my $pbtag = $pb->{'tag'};
     68my $pbextdir = $pb->{'extdir'};
    6869my $pbsuf = $pb->{'pbos'}->{'suffix'};
    6970my $OUTPUT = shift;
     
    109110    $ndate = &UnixDate($date,"%a", "%b", "%d", "%Y");
    110111    $n2date = &UnixDate($date,"%a, %d %b %Y %H:%M:%S %z");
     112    # usefule mostly for test versions
     113    $pbver .= $pbextdir;
    111114    if ($dtype eq "rpm") {
    112115        $ver2 = "$pbver-$pbtag";
     
    151154while (<INPUT>) {
    152155    ($ver, $date) = split(/ /);
     156    # In case there is a v before the real version string
    153157    $ver =~ s/^v//;
    154158    chomp($date);
     
    162166    if ($ver !~ /-/) {
    163167        if ($first eq 1) {
    164             $ver2 = "$ver-$pbtag";
     168            $ver2 = "$ver$pbextdir-$pbtag";
    165169            $first = 0;
    166170        } else {
Note: See TracChangeset for help on using the changeset viewer.