Quellcode durchsuchen

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

Guillem Jover vor 16 Jahren
Ursprung
Commit
e4b16b5f54
2 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  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
     filename for source as the file is not yet in place due to the rename
     deferral. Thanks to Colin Watson for the initial patch.
+  * Do not output the Package-Type field on udeb.
 
   [ Updated dpkg translations ]
   * 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';
 
 if ($pkg_type eq 'udeb') {
+    delete $fields->{'Package-Type'};
     delete $fields->{'Homepage'};
 } else {
     for my $f (qw(Subarchitecture Kernel-Version Installer-Menu-Item)) {