diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2011-06-21 07:18:36 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2011-06-21 07:18:36 +0000 |
commit | 45e3192a8b259dc5b7bd5ec4d3a389cecf142e2c (patch) | |
tree | 6d106f8d235328fd8b66a162c02c0dabdd626332 /usr.sbin/pkg_add | |
parent | f0bdd755ada73cdc5d56fe2f49f7b5e06b05958e (diff) |
- adjust add_property() to allow more liberal whitespace usage.
from simon@, tested in a bulk by landry@
ok espie@
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PkgConfig.pm | 4 |
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 718f9751b59..f9d412b427c 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.18 2010/12/24 09:04:14 espie Exp $ +# $OpenBSD: PkgConfig.pm,v 1.19 2011/06/21 07:18:35 jasper Exp $ # # Copyright (c) 2006 Marc Espie <espie@openbsd.org> # @@ -73,7 +73,7 @@ sub add_property if (defined $parse->{$name}) { $v = $parse->{$name}($value); } else { - $v = [split /\s+/o, $value] ; + $v = [split /(?<!\\)\s+/o, $value]; } } else { $v = []; |