+2008-05-12 Guillem Jover <guillem@debian.org>
+
+ * scripts/dpkg-gencontrol.pl: Get Package-Type field value also from
+ custom field.
+
2008-05-11 Raphael Hertzog <hertzog@debian.org>
* src/processarc.c (process_archive): While removing files that
Based on a patch by Russell Coker. Closes: #474339
* Add missing import of internerr in Dpkg::Source::Patch.pm.
Thanks to Marco d'Itri. Closes: #479205
+ * Consider also custom Package-Type fields when printing warnings in
+ dpkg-gencontrol. Closes: #452273
[ Raphael Hertzog ]
* Add missing import of subprocerr in Dpkg::Source::Package. Thanks to Sven
my %remove;
my %override;
my $oppackage;
-my $package_type = 'deb';
my $substvars = Dpkg::Substvars->new();
}
$oppackage = $fields->{'Package'};
-$package_type = $fields->{'Package-Type'} if (defined($fields->{'Package-Type'}));
+my $package_type = $pkg->{'Package-Type'} ||
+ tied(%$pkg)->get_custom_field('Package-Type') || 'deb';
if ($package_type eq 'udeb') {
delete $fields->{'Homepage'};