summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorSteven Mestdagh <steven@cvs.openbsd.org>2007-11-17 18:31:32 +0000
committerSteven Mestdagh <steven@cvs.openbsd.org>2007-11-17 18:31:32 +0000
commitbf3834b8ac2baa2719c1d1c1efa44f2183170464 (patch)
treef1af1e9b371756e87079fc7267caf12b1603bd42 /usr.sbin
parentd01a489fa1219c61fda09f57afb85c8191c6806e (diff)
allow whitespace before = sign when reading variables from a .pc file.
"go ahead" espie@, "makes sense" ckuethe@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgConfig.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgConfig.pm b/usr.sbin/pkg_add/OpenBSD/PkgConfig.pm
index 1ff9d3f5ddd..47019ef189f 100644
--- a/usr.sbin/pkg_add/OpenBSD/PkgConfig.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PkgConfig.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PkgConfig.pm,v 1.10 2007/06/04 14:57:33 espie Exp $
+# $OpenBSD: PkgConfig.pm,v 1.11 2007/11/17 18:31:31 steven Exp $
#
# Copyright (c) 2006 Marc Espie <espie@openbsd.org>
#
@@ -100,7 +100,7 @@ sub read_fh
next if m/^\#/;
# zap comments
s/(?<!\\)\#.*//;
- if (m/^([\w.]*)\=\s*(.*)$/) {
+ if (m/^([\w.]*)\s*\=\s*(.*)$/) {
$cfg->add_variable($1, $2);
} elsif (m/^([\w.]*)\:\s+(.*)$/) {
$cfg->add_property($1, $2);