diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2010-06-24 17:21:45 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2010-06-24 17:21:45 +0000 |
commit | c00f9fbe684ccfae3f161908c1897c9e823bfa96 (patch) | |
tree | ece94c86c84a124f764cca52bb05b53d66a4f89c /usr.sbin/pkg_add/pkg_mklocatedb | |
parent | a47a3b0ae9c3438c0b472bc4832db2793c3bc339 (diff) |
Include files annotated @bin in the database produced by pkg_mklocatedb;
reported by Antti Harri who gave a very good tip helping analysis, thanks!
ok espie@
Diffstat (limited to 'usr.sbin/pkg_add/pkg_mklocatedb')
-rw-r--r-- | usr.sbin/pkg_add/pkg_mklocatedb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/pkg_mklocatedb b/usr.sbin/pkg_add/pkg_mklocatedb index 2f4353137b1..e533170a957 100644 --- a/usr.sbin/pkg_add/pkg_mklocatedb +++ b/usr.sbin/pkg_add/pkg_mklocatedb @@ -1,6 +1,6 @@ #! /usr/bin/perl # Copyright (c) 2005-2010 Marc Espie <espie@openbsd.org> -# $OpenBSD: pkg_mklocatedb,v 1.26 2010/06/09 11:57:21 espie Exp $ +# $OpenBSD: pkg_mklocatedb,v 1.27 2010/06/24 17:21:44 sthen Exp $ # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above @@ -149,7 +149,7 @@ if ($opt_p) { my $_; while (<$fh>) { return if m/^\=\=\=\> /o; - next unless m/^\@(?:cwd|name|info|man|file|lib|shell|comment\s+subdir\=)\b/o || !m/^\@/o; + next unless m/^\@(?:bin|cwd|name|info|man|file|lib|shell|comment\s+subdir\=)\b/o || !m/^\@/o; &$cont($_); } $done = 1; |