From c00f9fbe684ccfae3f161908c1897c9e823bfa96 Mon Sep 17 00:00:00 2001 From: Stuart Henderson Date: Thu, 24 Jun 2010 17:21:45 +0000 Subject: 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@ --- usr.sbin/pkg_add/pkg_mklocatedb | 4 ++-- 1 file 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 -# $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; -- cgit v1.2.3