Przeglądaj źródła

dpkg-gencontrol: Do not output the Homepage field on udeb

Guillem Jover 18 lat temu
rodzic
commit
b29edb23b3
3 zmienionych plików z 8 dodań i 1 usunięć
  1. 4 0
      ChangeLog
  2. 1 0
      debian/changelog
  3. 3 1
      scripts/dpkg-gencontrol.pl

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+2008-02-07  Guillem Jover  <guillem@debian.org>
+
+	* scripts/dpkg-gencontrol.pl: Do not output the Homepage field on udeb.
+
 2008-02-04  Guillem Jover  <guillem@debian.org>
 
 	* libcompat/Makefile.am (localedir): Remove unused variable.

+ 1 - 0
debian/changelog

@@ -14,6 +14,7 @@ dpkg (1.14.17) UNRELEASED; urgency=low
   * Add Raphael Hertzog to Uploaders, and remove Brendan O'Dea and
     Christian Perrier with their permission.
   * Use functions from libcompat when those are not provided by the system.
+  * Change dpkg-gencontrol to not output the Homapage field on udeb.
 
   [ Raphael Hertzog ]
   * Add a warning displayed by dpkg-genchanges if the current version is

+ 3 - 1
scripts/dpkg-gencontrol.pl

@@ -267,7 +267,9 @@ $oppackage = $fields->{'Package'};
 
 $package_type = $fields->{'Package-Type'} if (defined($fields->{'Package-Type'}));
 
-if ($package_type ne 'udeb') {
+if ($package_type eq 'udeb') {
+    delete $fields->{'Homepage'};
+} else {
     for my $f (qw(Subarchitecture Kernel-Version Installer-Menu-Item)) {
         warning(_g("%s package with udeb specific field %s"), $package_type, $f)
             if defined($fields->{$f});