Changeset 71 for trunk


Ignore:
Timestamp:
11/15/06 13:39:51 (18 years ago)
Author:
kdeugau
Message:

/trunk

Add --showpkgs option to dump package list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r70 r71  
    151151}
    152152
     153if ($cmdopts{type} eq 'd') {
     154  parse_spec();
     155  foreach my $pkg (@pkglist) {
     156    $pkgdata{$pkg}{name} =~ tr/_/-/;
     157
     158    my $pkgfullname = "$pkgdata{$pkg}{name}_$pkgdata{$pkg}{version}-$pkgdata{main}{release}_i386.deb";
     159
     160    print "$pkgfullname\n";
     161  }
     162  exit 0;
     163}
     164
    153165# Stick --rebuild handling in here - basically install_sdeb()
    154166# followed by tweaking options to run with -ba
     
    282294        } elsif (/^--rebuild/) {
    283295          $cmdopts{type} = 's';
     296        } elsif (/^--showpkgs/) {
     297          $cmdopts{type} = 'd'; # d for 'diagnostic' or 'debug' or 'dump'
    284298        } else {
    285299          print "Long opt $_\n";
     
    323337          }
    324338          $srcpkg = $_;
    325         } elsif ($cmdopts{type} eq 'b') {
     339        } elsif ($cmdopts{type} eq 'b' || $cmdopts{type} eq 'd') {
    326340          # Spec file
    327341          $specfile = $_;
Note: See TracChangeset for help on using the changeset viewer.