Subject: pkg/14495: pkglocate should be updated because of the changes of no pkg/
To: None <gnats-bugs@gnats.netbsd.org>
From: None <ryoh@jaist.ac.jp>
List: netbsd-bugs
Date: 11/08/2001 04:17:42
>Number:         14495
>Category:       pkg
>Synopsis:       pkglocate should be updated because of the changes of no pkg/*
>Confidential:   yes
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 07 11:18:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Ryo HAYASAKA
>Release:        NetBSD 1.5Y, the latest pkgsrc tree
>Organization:
Japan Advanced Institute of Science and Technology (JAIST)
>Environment:
System: NetBSD bonnie.jaist.ac.jp 1.5Y NetBSD 1.5Y (BONNIE) #127: Tue Nov 6 22:02:57 JST 2001 root@bonnie.jaist.ac.jp:/c/src/sys/arch/i386/compile/BONNIE i386
Architecture: i386
Machine: i386
ryoh@bonnie$ ident pkglocate
pkglocate:
     $NetBSD: pkglocate,v 1.5 2001/03/08 11:46:52 drochner Exp $
>Description:
Moving files from pkg/* to the root directory of the package, pkglocate 
also should be updated so that it searches the root directory.
>How-To-Repeat:
ryoh@bonnie$ ./pkglocate mem
grep: archivers/*/pkg/DESCR: No such file or directory
grep: audio/*/pkg/DESCR: No such file or directory
grep: benchmarks/*/pkg/DESCR: No such file or directory
^C

>Fix:
ryoh@bonnie$ diff -u pkglocate.org pkglocate
--- pkglocate.org       Thu Nov  8 00:46:42 2001
+++ pkglocate   Thu Nov  8 00:47:57 2001
@@ -58,11 +58,11 @@
 approx=""
 igncase=""
 verbose=no
-files='*/pkg/DESCR'
+files='*/DESCR'
 while [ $# -gt 1 ]; do
        case $1 in
        -i)     igncase="-i" ;;
-       -f)     files='*/pkg/PLIST*' ;;
+       -f)     files='*/PLIST*' ;;
        -p)     if [ "$grepname" = "agrep" ]; then approx="-p"; fi ;;
        -v)     verbose=yes ;;
        *)      break ;;
>Release-Note:
>Audit-Trail:
>Unformatted: