Changeset 540 for devel/pb/bin/pb


Ignore:
Timestamp:
Sep 15, 2008, 1:11:19 PM (11 years ago)
Author:
Bruno Cornec
Message:

Fix #32 for RPMS based packages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r539 r540  
    541541        $pb{'rev'} = $pbrev;
    542542        $pb{'ver'} = $pbver;
     543        $pb{'pkg'} = $pbpkg;
    543544        $pb{'date'} = $pbdate;
    544545        $pb{'defpkgdir'} = $defpkgdir;
     
    560561
    561562            # We need to compute the real name of the package
    562             my $pbpkgreal = pb_cms_get_real_pkg($pbpkg,$pb{'dtype'});
    563             $pb{'pkg'} = $pbpkgreal;
     563            my $pbrealpkg = pb_cms_get_real_pkg($pbpkg,$pb{'dtype'});
     564            $pb{'realpkg'} = $pbrealpkg;
    564565
    565566            # Filter build files from the less precise up to the most with overloading
     
    783784                }
    784785            }
    785             $made="$made RPMS/*/$pbpkg-$pbver-$pbtag$pbsuf.*.rpm SRPMS/$pbpkg-$pbver-$pbtag$pbsuf.src.rpm";
     786            # Get the name of the generated packages
     787            open(LOG,"$ENV{'PBTMP'}/system.log") || die "Unable to open $ENV{'PBTMP'}/system.log";
     788            while (<LOG>) {
     789                chomp();
     790                next if ($_ !~ /^Wrote:/);
     791                s|.*/([S]*RPMS.*)|$1|;
     792                $made="$made $_";
     793            }
     794
    786795            if (-f "/usr/bin/rpmlint") {
    787796                pb_system("rpmlint $made","Checking validity of rpms with rpmlint","verbose");
Note: See TracChangeset for help on using the changeset viewer.