The following commit has been merged in the master branch:
commit e4b16b5f5413a44622769ebfd7aafb62d86c4967
Author: Guillem Jover <[email protected]>
Date:   Thu Apr 15 21:10:41 2010 +0200

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

diff --git a/debian/changelog b/debian/changelog
index 5650df3..129e6e1 100644
--- a/debian/changelog
+++ b/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).
diff --git a/scripts/dpkg-gencontrol.pl b/scripts/dpkg-gencontrol.pl
index 9105a4c..cdbd8f8 100755
--- a/scripts/dpkg-gencontrol.pl
+++ b/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)) {

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to