Browse Source

Dpkg::Conf: fix parsing of options with values

Raphaël Hertzog 16 years ago
parent
commit
062878ba02
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/Dpkg/Conf.pm

+ 1 - 1
scripts/Dpkg/Conf.pm

@@ -93,7 +93,7 @@ sub parse {
 	    warning(_g("short option not allowed in %s, line %d"), $desc, $.);
 	    next;
 	}
-	if (/^(\S+)(?:=(.*))?$/) {
+	if (/^([^=]+)(?:=(.*))?$/) {
 	    my ($name, $value) = ($1, $2);
 	    $name = "--$name" unless $name =~ /^-/;
 	    if (defined $value) {