Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master sorcery by Jaka Kranjc (05f628fc34c34908d5f2b935f3cc4c1df20663ae)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • 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 (05f628fc34c34908d5f2b935f3cc4c1df20663ae)
  • Date: Fri, 20 Jun 2008 12:58:38 -0500

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

ChangeLog | 1 +
var/lib/sorcery/modules/libqueue | 9 +++++++--
2 files changed, 8 insertions(+), 2 deletions(-)

New commits:
commit 05f628fc34c34908d5f2b935f3cc4c1df20663ae
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>

print the number of security updates for multiversion spells too

diff --git a/ChangeLog b/ChangeLog
index b89a40b..aa9ead0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
* libsorcery: refactored common code out of queueing functions and
made
does_spell_need_update use the cache method too (a big cast -Z
speedup)
* libqueue: created to hold all the install queue functions
+ print the number of security updates for multiversion spells too

2008-06-19 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* sorcery.8: clarify the sorcery default subcommands with examples
#14528
diff --git a/var/lib/sorcery/modules/libqueue
b/var/lib/sorcery/modules/libqueue
index 59630af..cb89072 100644
--- a/var/lib/sorcery/modules/libqueue
+++ b/var/lib/sorcery/modules/libqueue
@@ -248,8 +248,13 @@ function does_spell_need_update_sub() {
tablet_get_patchlevel $page_dir curr_patchlevel
tablet_get_security_patch $page_dir curr_sec_patch
fi
- if (( "${SECURITY_PATCH:-0}" > "$curr_sec_patch" )); then
- message="$message Security update."
+ local diff=$(( ${SECURITY_PATCH:-0} - $curr_sec_patch ))
+ if (( $diff > 0 )); then
+ if (( $diff > 1 )); then
+ message="$message Security update ($diff times!)."
+ else
+ message="$message Security update."
+ fi
elif (( "${PATCHLEVEL:-0}" > "$curr_patchlevel" )); then
message="$message Spell update."
elif (( "${UPDATED:-0}" > "${curr_updated:-0}" )); then



  • [SM-Commit] GIT changes to master sorcery by Jaka Kranjc (05f628fc34c34908d5f2b935f3cc4c1df20663ae), Jaka Kranjc, 06/20/2008

Archive powered by MHonArc 2.6.24.

Top of Page