The following commit has been merged in the master branch:
commit 63044da0c7f67179d6e0cb3436f987248a44152e
Author: Raphaël Hertzog <[email protected]>
Date: Sun Sep 20 11:49:52 2009 +0200
Dpkg::Control::Fields: don't fail when vendor hook is not (well) implemented
diff --git a/scripts/Dpkg/Control/Fields.pm b/scripts/Dpkg/Control/Fields.pm
index 6b2b3b8..7b08dd3 100644
--- a/scripts/Dpkg/Control/Fields.pm
+++ b/scripts/Dpkg/Control/Fields.pm
@@ -313,6 +313,7 @@ $FIELD_ORDER{CTRL_APT_SRC()} = [
@{$FIELD_ORDER{CTRL_PKG_SRC()}} ];
# Register vendor specifics fields
foreach my $op (run_vendor_hook("register-custom-fields")) {
+ next if not (defined $op and ref $op); # Skip when not implemented by
vendor
my $func = shift @$op;
if ($func eq "register") {
&field_register(@$op);
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]