From da24c2f7431a3449b17f906212d4ef99a83653b0 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Wed, 5 Sep 2007 07:24:52 +0300 Subject: [PATCH] Properly override Homepage field from binary package stanzas --- ChangeLog | 5 +++++ scripts/dpkg-gencontrol.pl | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ee02dd5a..0e9b48d5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-09-05 Guillem Jover + + * scripts/dpkg-gencontrol.pl: Properly override Homepage field from + binary package stanzas. + 2007-08-31 Guillem Jover * dpkg-deb/build.c (arbitrary_fields): Add Tag. diff --git a/scripts/dpkg-gencontrol.pl b/scripts/dpkg-gencontrol.pl index 92052fc8..c7563387 100755 --- a/scripts/dpkg-gencontrol.pl +++ b/scripts/dpkg-gencontrol.pl @@ -146,8 +146,11 @@ for $_ (keys %fi) { if (s/^C //) { #print STDERR "G key >$_< value >$v<\n"; - if (m/^(Origin|Bugs|Maintainer|Homepage)$/) { + if (m/^(Origin|Bugs|Maintainer)$/) { $f{$_} = $v; + } elsif (m/^Homepage$/) { + # Binary package stanzas can override these fields + $f{$_} = $v if !defined($f{$_}); } elsif (m/^Source$/) { setsourcepackage($v); } -- 2.39.5