Changeset 1098


Ignore:
Timestamp:
Oct 25, 2010, 1:02:03 AM (8 years ago)
Author:
bruno
Message:
  • Improve display of RPMS and SRPMS packages generated to allow easy cut and paste.
  • Fix #69 by doing recursion in pb_list_bfiles to handle new Debian 3.0 format with subdirs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1097 r1098  
    11461146        if (-f "/usr/bin/rpmlint") {
    11471147            pb_system("rpmlint $made","Checking validity of rpms with rpmlint","verbose");
    1148         } else {
    1149             pb_log(0,"rpm packages generated: $made\n");
    1150         }
     1148        }
     1149        my $rpms ="";
     1150        my $srpms ="";
     1151        foreach my $f (split(/ /,$made)) {
     1152            $rpms .= "$ENV{'PBBUILDDIR'}/$f " if ($f =~ /^RPMS\//);
     1153            $srpms .= "$ENV{'PBBUILDDIR'}/$f " if ($f =~ /^SRPMS\//);
     1154        }
     1155        pb_log(0,"SRPM packages generated: $srpms\n");
     1156        pb_log(0,"RPM packages generated: $rpms\n");
    11511157    } elsif ($dtype eq "deb") {
    11521158        my $made2 = "";
     
    30123018foreach my $f (readdir(BDIR)) {
    30133019    next if ($f =~ /^\./);
     3020    if (-d $f) {
     3021        # Recurse for directories (Debian 3.0 format e.g.)
     3022        pb_list_bfiles($f,$pbpkg,$bfiles,$pkgfiles,$supfiles);
     3023        next;
     3024    }
    30143025    $bfiles->{$f} = "$dir/$f";
    30153026    $bfiles->{$f} =~ s~$ENV{'PBROOTDIR'}~~;
Note: See TracChangeset for help on using the changeset viewer.