[csw-devel] SF.net SVN: opencsw:[554] gar-wrapper
skayser at users.sourceforge.net
skayser at users.sourceforge.net
Sat Sep 24 23:49:12 CEST 2011
Revision: 554
http://opencsw.svn.sourceforge.net/opencsw/?rev=554&view=rev
Author: skayser
Date: 2011-09-24 21:49:12 +0000 (Sat, 24 Sep 2011)
Log Message:
-----------
mgar: tweak locate (search all fields by default, rename g: prefix to n:)
Modified Paths:
--------------
gar-wrapper/CHANGES
gar-wrapper/mgar
Modified: gar-wrapper/CHANGES
===================================================================
--- gar-wrapper/CHANGES 2011-09-24 15:59:13 UTC (rev 553)
+++ gar-wrapper/CHANGES 2011-09-24 21:49:12 UTC (rev 554)
@@ -1,11 +1,13 @@
Changes with 0.94-dev:
* NEW command "status" to query VCS status (^= svn status)
* NEW command "reindex" to drop and re-build the search index
-* NEW command alias (or rather full name) "update" for "up"
+* NEW command alias "update" for "up"
* DROP command "scm", typing "svn <sth>" is shorter than "mgar scm <sth>"
* CHANGE "locate" command output now sorted
* CHANGE "locate" now automatically builds the index (if not present)
* CHANGE "locate" will update the index if it's older than 14 days
+* CHANGE "locate" dropped a: prefix, search all recipe lines by default
+* CHANGE "locate" use n: prefix instead of g: to search the name field
* FIX "index" now properly encodes file paths with special signs (e.g. '+')
* FIX "init-existing" now properly removes obsolete gar/ symlinks
* FIX ~/.garrc variable assignments couldn't cope with tabs (Rafael Ostertag)
Modified: gar-wrapper/mgar
===================================================================
--- gar-wrapper/mgar 2011-09-24 15:59:13 UTC (rev 553)
+++ gar-wrapper/mgar 2011-09-24 21:49:12 UTC (rev 554)
@@ -451,11 +451,9 @@
[ -z "${__stale}" ] || { echo "Index stale (>14d). Rebuilding."; $0 index; }
case "$__term" in
- a:*) __term=${__term#a:}; __searchby="";;
- g:*) __term=${__term#g:}; __searchby="NAME";;
+ n:*) __term=${__term#g:}; __searchby="NAME";;
p:*) __term=${__term#p:}; __searchby="PACKAGES";;
c:*) __term=${__term#c:}; __searchby="CATALOG";;
- *) __searchby="(CATALOG|PACKAGES|NAME)";;
esac
namazu -slr "*$__term*" "${__index}" | while read f; do
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list