sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master sorcery by Jaka Kranjc (379470540400c22f15c985b5b60244bb355bf463)
- From: Jaka Kranjc <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master sorcery by Jaka Kranjc (379470540400c22f15c985b5b60244bb355bf463)
- Date: Sun, 30 Mar 2008 06:04:14 -0500
GIT changes to master sorcery by Jaka Kranjc <lynxlynxlynx AT sourcemage.org>:
ChangeLog | 4 ++++
var/lib/sorcery/modules/libstate | 11 +++++++++--
2 files changed, 13 insertions(+), 2 deletions(-)
New commits:
commit 379470540400c22f15c985b5b60244bb355bf463
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
libstate: added a workaround to search_depends_status_exact for provider
functions, since they were broke after the 2008-03-26 esc_str fix
diff --git a/ChangeLog b/ChangeLog
index 36884d6..014ce00 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-03-30 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
+ * libstate: added a workaround to search_depends_status_exact for
provider
+ functions, since they were broke after the 2008-03-26 esc_str fix
+
2008-03-28 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* libmedia: reset the color in the CHECK_ and MESSAGE_COLOR
definitions, so
they can't inherit the bold atribute from the other colors
diff --git a/var/lib/sorcery/modules/libstate
b/var/lib/sorcery/modules/libstate
index 3ce15be..6aca889 100755
--- a/var/lib/sorcery/modules/libstate
+++ b/var/lib/sorcery/modules/libstate
@@ -9,7 +9,7 @@
#---------------------------------------------------------------------
##
-## Adds a dependency to the a depends database file. Returns 1 is the
+## Adds a dependency to the a depends database file. Returns 1 if the
## 3rd or 4th fields are not valid.
##
## @param Depends status file
@@ -78,8 +78,15 @@ function search_depends_status_exact()
shift
local a1 a2 a3 a4 a5 a6
- esc_str "$1" a1; esc_str "$2" a2; esc_str "$3" a3
+ esc_str "$1" a1; esc_str "$3" a3
esc_str "$4" a4; esc_str "$5" a5; esc_str "$6" a6
+ # ugly, but needed for get_spell_provider and real_provider_ok
+ if [[ ${2:0:2} == ".*" ]]; then
+ esc_str "${2:2}" a2
+ a2=".*$a2"
+ else
+ esc_str "$2" a2
+ fi
debug "libstate" "search_depends_status_exact: [$a1:$a2:$a3:$a4:$a5:$a6]"
lock_file "$depends_status"
- [SM-Commit] GIT changes to master sorcery by Jaka Kranjc (379470540400c22f15c985b5b60244bb355bf463), Jaka Kranjc, 03/30/2008
Archive powered by MHonArc 2.6.24.