[SM-Commit] GIT changes to master sorcery by Jaka Kranjc (e2babc7cbff219e4125a639df0bc10dcf58da823)

Jaka Kranjc scm at sourcemage.org
Fri Nov 23 12:05:38 EST 2007


GIT changes to master sorcery by Jaka Kranjc <lynxlynxlynx at sourcemage.org>:

 ChangeLog     |    1 +
 usr/sbin/gaze |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

New commits:
commit e2babc7cbff219e4125a639df0bc10dcf58da823
Author: Jaka Kranjc <lynxlynxlynx at sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx at sourcemage.org>

    gaze: fixed matching of spell and short during gaze search #9433

diff --git a/ChangeLog b/ChangeLog
index 41c5217..ab93a84 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
 	  spells from the sorcery menu works again
 	* mirrors/SOURCEFORGE: updated list from #13504
 	* scribe: fixed error message when swapping nonexsistant grimoires #13253
+	* gaze: fixed matching of spell and short during gaze search #9433
 
 2007-11-21 Jaka Kranjc <lynxlynxlynx at sourcemage.org>
 	* libsummon: fail on any text/ mimetype when checking the tarball source
diff --git a/usr/sbin/gaze b/usr/sbin/gaze
index 0732693..a3d8482 100755
--- a/usr/sbin/gaze
+++ b/usr/sbin/gaze
@@ -744,8 +744,8 @@ function real_long_search()  {
       pattern=${SEARCH[$i]}
       SEARCH_RESULTS=$(gawk 'BEGIN{ORS = ""; IGNORECASE=1; inLongDesc=0}
         /'"${pattern}"'/{
-          if(/^[[:blank:]]*SPELL/)   {print "(Name Match)";        exit 0;}
-          if(/^[[:blank:]]*SHORT/)   {print "(Short Description)"; exit 0;}
+          if(/^[[:blank:]]*SPELL=.*'"${pattern}"'/)   {print "(Name Match)";        exit 0;}
+          if(/^[[:blank:]]*SHORT=.*'"${pattern}"'/)   {print "(Short Description)"; exit 0;}
           if(inLongDesc) {print "(Description)";       exit 0;}
         }
         /cat[[:blank:]]*<<[[:blank:]]*EOF/{inLongDesc = 1;}



More information about the SM-Commit mailing list