Changeset 54


Ignore:
Timestamp:
04/19/06 14:00:46 (19 years ago)
Author:
kdeugau
Message:

/trunk

Add --rebuild support for our .sdebs.
Tweak .sdeb filename output for consistency between -ba and -bs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r53 r54  
    138138# Stick --rebuild handling in here - basically install_sdeb()
    139139# followed by tweaking options to run with -ba
     140if ($cmdopts{type} eq 's') {
     141  install_sdeb();
     142  my @srclist = qx { pax < $srcpkg };
     143  $cmdopts{type} = 'b';
     144  $cmdopts{stage} = 'a';
     145  foreach (@srclist) {
     146    if (/SPECS/) {
     147      chomp;
     148      $specfile = "$topdir/$_";
     149    }
     150  }
     151}
    140152
    141153if ($cmdopts{type} eq 'b') {
     
    821833# Not quite identical to RPM, but Good Enough (TM).
    822834sub srcpackage {
     835  # In case we were called with -bs.
     836  $pkgdata{main}{name} =~ tr/_/-/;
    823837  my $pkgsrcname = "$pkgdata{main}{name}-$pkgdata{main}{version}-$pkgdata{main}{release}.sdeb";
    824838
Note: See TracChangeset for help on using the changeset viewer.