Changeset 145
- Timestamp:
- 06/10/08 13:08:54 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/debbuild
r140 r145 668 668 # NB: NOT going to support Pre-Depends, since it's a "Don't Use" (mis)feature, and 669 669 # 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)) { 671 671 $dname =~ tr/[A-Z]/[a-z]/; 672 672 if ($dname =~ /^BuildArch/i) { … … 896 896 $pkgdata{main}{suggests} .= ", $1"; 897 897 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; 898 901 } elsif (/^replaces:\s*(.+)/i) { 899 902 $pkgdata{main}{replaces} .= ", $1"; … … 1149 1152 $pkgdata{$pkg}{suggests} = expandmacros($pkgdata{$pkg}{suggests},'gp'); 1150 1153 } 1154 if (defined($pkgdata{$pkg}{enhances})) { 1155 $pkgdata{$pkg}{enhances} =~ s/^, //; 1156 $pkgdata{$pkg}{enhances} = expandmacros($pkgdata{$pkg}{enhances},'gp'); 1157 } 1151 1158 if (defined($pkgdata{$pkg}{replaces})) { 1152 1159 $pkgdata{$pkg}{replaces} =~ s/^, //; … … 1186 1193 ( defined($pkgdata{$pkg}{recommends}) ? "Recommends: $pkgdata{$pkg}{recommends}\n" : '' ). 1187 1194 ( defined($pkgdata{$pkg}{suggests}) ? "Suggests: $pkgdata{$pkg}{suggests}\n" : '' ). 1195 ( defined($pkgdata{$pkg}{enhances}) ? "Enhances: $pkgdata{$pkg}{enhances}\n" : '' ). 1188 1196 ( defined($pkgdata{$pkg}{replaces}) ? "Replaces: $pkgdata{$pkg}{replaces}\n" : '' ). 1189 1197 "Description: $pkgdata{$pkg}{summary}\n";
Note:
See TracChangeset
for help on using the changeset viewer.