Changeset 39 for trunk


Ignore:
Timestamp:
02/23/06 11:40:26 (19 years ago)
Author:
kdeugau
Message:

/trunk

Fix a few bugs:

  • Don't include #-comments in the description
  • Make sure $pkgdata{package}{provides} is defined before we do anything to it.
  • Clean up some progress messages
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r38 r39  
    333333        }
    334334        while (<SPECFILE>) {
     335          next if /^#/;    # Messy.  Should be possible to do better.  :/
    335336          redo LINE if /^\%/;
    336337          $pkgdata{$subname}{desc} .= " $_";
     
    694695
    695696    # Do this here since we're doing {depends}...
    696     $pkgdata{$pkg}{provides} =~ s/^, //;
     697    $pkgdata{$pkg}{provides} =~ s/^, // if defined($pkgdata{$pkg}{provides});
    697698
    698699    # Gotta do this next, otherwise the control file has nowhere to go.  >:(
     
    720721        "Maintainer: $pkgdata{main}{packager}\n".
    721722        "Depends: $pkgdata{$pkg}{depends}\n".
    722         "Provides: $pkgdata{$pkg}{provides}\n".
     723        ( defined($pkgdata{$pkg}{provides}) ? "Provides: $pkgdata{$pkg}{provides}\n" : '' ).
    723724        "Description: $pkgdata{$pkg}{summary}\n";
    724725    $control .= "$pkgdata{$pkg}{desc}\n";
     
    917918  my $pkgtree = $_[0];
    918919
    919   print "checking reqs on executables in $pkgtree...\n";
     920  print "Checking library requirements...\n";
    920921  my @reqlist = qx { find $pkgtree -type f -perm 755 | grep -v $pkgtree/etc | xargs ldd };
    921922
Note: See TracChangeset for help on using the changeset viewer.