Changeset 145 for trunk


Ignore:
Timestamp:
06/10/08 13:08:54 (17 years ago)
Author:
kdeugau
Message:

/trunk

Add Enhances: as per Itzchak Rehberg's request.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r140 r145  
    668668# NB: NOT going to support Pre-Depends, since it's a "Don't Use" (mis)feature, and
    669669# RPM's support for a similar tag (PreReq) has been recently dropped.
    670       if (my ($dname,$dvalue) = (/^(Recommends|Suggests|Replaces|Summary|Group|Version|Requires|Conflicts|Provides|BuildArch(?:itecture)?):\s+(.+)$/i)) {
     670      if (my ($dname,$dvalue) = (/^(Recommends|Suggests|Enhances|Replaces|Summary|Group|Version|Requires|Conflicts|Provides|BuildArch(?:itecture)?):\s+(.+)$/i)) {
    671671        $dname =~ tr/[A-Z]/[a-z]/;
    672672        if ($dname =~ /^BuildArch/i) {
     
    896896        $pkgdata{main}{suggests} .= ", $1";
    897897        warn "Warning:  Debian-specific 'Suggests:' outside \%if wrapper\n" if $iflevel == 0;
     898      } elsif (/^enhances:\s*(.+)/i) {
     899        $pkgdata{main}{enhances} .= ", $1";
     900        warn "Warning:  Debian-specific 'Enahnces:' outside \%if wrapper\n" if $iflevel == 0;
    898901      } elsif (/^replaces:\s*(.+)/i) {
    899902        $pkgdata{main}{replaces} .= ", $1";
     
    11491152      $pkgdata{$pkg}{suggests} = expandmacros($pkgdata{$pkg}{suggests},'gp');
    11501153    }
     1154    if (defined($pkgdata{$pkg}{enhances})) {
     1155      $pkgdata{$pkg}{enhances} =~ s/^, //;
     1156      $pkgdata{$pkg}{enhances} = expandmacros($pkgdata{$pkg}{enhances},'gp');
     1157    }
    11511158    if (defined($pkgdata{$pkg}{replaces})) {
    11521159      $pkgdata{$pkg}{replaces} =~ s/^, //;
     
    11861193        ( defined($pkgdata{$pkg}{recommends}) ? "Recommends: $pkgdata{$pkg}{recommends}\n" : '' ).
    11871194        ( defined($pkgdata{$pkg}{suggests}) ? "Suggests: $pkgdata{$pkg}{suggests}\n" : '' ).
     1195        ( defined($pkgdata{$pkg}{enhances}) ? "Enhances: $pkgdata{$pkg}{enhances}\n" : '' ).
    11881196        ( defined($pkgdata{$pkg}{replaces}) ? "Replaces: $pkgdata{$pkg}{replaces}\n" : '' ).
    11891197        "Description: $pkgdata{$pkg}{summary}\n";
Note: See TracChangeset for help on using the changeset viewer.