New commits:
commit 9f2359675dc63c30172a86aa97699d3be6b3376a
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
libgrimoire: fixed private_installed_version to match regex chars too
diff --git a/ChangeLog b/ChangeLog
index d785620..d932a2b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
was a file; if it wasn't, the code would lock the trigger list
forever
fixed bug #13466 - dispel_self was dispelling the triggerer
* dispel.8: added --total-dispel and fixed some grammar
+ * libgrimoire: fixed private_installed_version to match regex chars
too
2008-01-22 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* libstate: moved the subshell from the callers into
query_spell_status and
diff --git a/var/lib/sorcery/modules/libgrimoire
b/var/lib/sorcery/modules/libgrimoire
index afe1898..40705ce 100755
--- a/var/lib/sorcery/modules/libgrimoire
+++ b/var/lib/sorcery/modules/libgrimoire
@@ -204,7 +204,7 @@ function real_installed_version() {
##
#---------------------------------------------------------------------
function private_installed_version() {
- awk -F : '/^'$1':/ {print $4; exit}' $SPELL_STATUS
+ awk -F: -v spell="$1" '{ if(spell == $1) {print $4; exit}}' $SPELL_STATUS
}