diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2012-04-16 10:55:32 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2012-04-16 10:55:32 +0000 |
commit | c3f09030202d3847b87612825f71641cd96e208c (patch) | |
tree | b12c712d469113390cb539992a35768867584740 /usr.sbin/pkg_add | |
parent | 88c205a33af3e9431d6efda5086e429224f99ee2 (diff) |
use explicit pattern to avoid huge results from pkg_locate we will
then have to trim.
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PkgCheck.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm b/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm index 861f2bb1baf..59f2e2cf7cc 100644 --- a/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm +++ b/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm @@ -1,7 +1,7 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: PkgCheck.pm,v 1.35 2012/04/16 10:32:05 espie Exp $ +# $OpenBSD: PkgCheck.pm,v 1.36 2012/04/16 10:55:31 espie Exp $ # # Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org> # @@ -456,7 +456,7 @@ sub run_command return; } my %h = map {($_, 1)} @{$self->{params}}; - open(my $cmd, '-|', 'pkg_locate', @{$self->{params}}); + open(my $cmd, '-|', 'pkg_locate', map {"*:$_"} @{$self->{params}}); while (<$cmd>) { chomp; my ($pkgname, $pkgpath, $path) = split(':', $_); |