diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2007-06-04 14:57:34 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2007-06-04 14:57:34 +0000 |
commit | c84619ff9fce6a775a11ea33bc32175591c1584f (patch) | |
tree | 41530734f6a01324bddf5d68528a28ae3a1b80bc /usr.sbin/pkg_add/pkg_mklocatedb | |
parent | 3ecbd34a160f4de0ad5a1f2af518f23766613210 (diff) |
I am on drugs, I don't know where I found split can take strings as
arguments. Repair...
Diffstat (limited to 'usr.sbin/pkg_add/pkg_mklocatedb')
-rw-r--r-- | usr.sbin/pkg_add/pkg_mklocatedb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/pkg_mklocatedb b/usr.sbin/pkg_add/pkg_mklocatedb index 3cfd94dccb5..7e562aa8a40 100644 --- a/usr.sbin/pkg_add/pkg_mklocatedb +++ b/usr.sbin/pkg_add/pkg_mklocatedb @@ -82,7 +82,7 @@ if ($opt_n or -t STDOUT) { open $fh, "|-", $MKLOCATEDB, $MKLOCATEDB or die "couldn't open pipe: $!"; } if ($opt_s || $opt_x) { - my ($rev, $arch) = split(' ', `uname -mr`); + my ($rev, $arch) = split(/\s+/o, `uname -mr`); chomp $arch; $rev =~ s/\.//; if ($opt_s) { |