Browse Source

dpkg-gencontrol: Do not output the Package-Type field on udeb

Guillem Jover 16 years ago
parent
commit
e4b16b5f54
2 changed files with 2 additions and 0 deletions
  1. 1 0
      debian/changelog
  2. 1 0
      scripts/dpkg-gencontrol.pl

+ 1 - 0
debian/changelog

@@ -58,6 +58,7 @@ dpkg (1.15.6.2) UNRELEASED; urgency=low
   * When creating hard links to normal files on extraction use the .dpkg-new
   * When creating hard links to normal files on extraction use the .dpkg-new
     filename for source as the file is not yet in place due to the rename
     filename for source as the file is not yet in place due to the rename
     deferral. Thanks to Colin Watson for the initial patch.
     deferral. Thanks to Colin Watson for the initial patch.
+  * Do not output the Package-Type field on udeb.
 
 
   [ Updated dpkg translations ]
   [ Updated dpkg translations ]
   * German (Sven Joachim).
   * German (Sven Joachim).

+ 1 - 0
scripts/dpkg-gencontrol.pl

@@ -280,6 +280,7 @@ my $pkg_type = $pkg->{'Package-Type'} ||
                $pkg->get_custom_field('Package-Type') || 'deb';
                $pkg->get_custom_field('Package-Type') || 'deb';
 
 
 if ($pkg_type eq 'udeb') {
 if ($pkg_type eq 'udeb') {
+    delete $fields->{'Package-Type'};
     delete $fields->{'Homepage'};
     delete $fields->{'Homepage'};
 } else {
 } else {
     for my $f (qw(Subarchitecture Kernel-Version Installer-Menu-Item)) {
     for my $f (qw(Subarchitecture Kernel-Version Installer-Menu-Item)) {