The following commit has been merged in the master branch:
commit 4c933be6a53553a32722803f336ac37eded9fb9b
Author: Raphaël Hertzog <[email protected]>
Date:   Fri Feb 26 10:57:18 2010 +0100

    Dpkg::BuildOptions: deal properly with undefined values in merge()

diff --git a/scripts/Dpkg/BuildOptions.pm b/scripts/Dpkg/BuildOptions.pm
index b515282..6cf0fcc 100644
--- a/scripts/Dpkg/BuildOptions.pm
+++ b/scripts/Dpkg/BuildOptions.pm
@@ -82,6 +82,7 @@ values like "nocheck parallel=2".
 
 sub merge {
     my ($self, $content, $source) = @_;
+    return 0 unless defined $content;
     my $count = 0;
     foreach (split(/\s+/, $content)) {
        unless (/^([a-z][a-z0-9_-]*)(?:=(\S*))?$/) {

-- 
dpkg's main repository


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

Reply via email to