Skip to Content.
Sympa Menu

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

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 (2a6ae2c40ccb8adb5734177fffd783b813255f36)
  • Date: Thu, 4 Dec 2008 05:13:35 -0600

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

ChangeLog | 1 +
usr/sbin/alter | 6 ++++++
var/lib/sorcery/modules/libtablet | 3 +++
3 files changed, 10 insertions(+)

New commits:
commit 2a6ae2c40ccb8adb5734177fffd783b813255f36
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>

alter, libtablet: added the missing version cache support #14934

diff --git a/ChangeLog b/ChangeLog
index 46e9e09..75e8eb6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
* *: validate commandline parameters before su-ing #7286
* resurrect: also redefine FAILED_LIST
* summon: simplified set_print_type
+ * alter, libtablet: added the missing version cache support #14934

2008-12-03 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* gaze: improved what/short when dealing with multiple spells #14839
diff --git a/usr/sbin/alter b/usr/sbin/alter
index 65bd956..43aec5f 100755
--- a/usr/sbin/alter
+++ b/usr/sbin/alter
@@ -69,6 +69,12 @@ EOF
create_md5list $INST_LOG $MD5_LOG
create_cache_archive $INST_LOG $CACHE $CACHE_COMP
add_spell "$SPELL" installed "$VERSION"
+ OLD_VERSION=$VERSION
+ (
+ [[ $SPELL != alter ]] && codex_set_current_spell_by_name $SPELL
+ add_version_cache "$VERSION_STATUS" "$SPELL" "$OLD_VERSION"
"${PATCHLEVEL:-0}" "${SECURITY_PATCH:-0}" "${UPDATED:-0}"
+ )
+
rm $C_LOG
report_install
unlock_resources "cast" "$SPELL"
diff --git a/var/lib/sorcery/modules/libtablet
b/var/lib/sorcery/modules/libtablet
index dbe66e3..87f7c0c 100755
--- a/var/lib/sorcery/modules/libtablet
+++ b/var/lib/sorcery/modules/libtablet
@@ -708,6 +708,9 @@ function tablet_create_version_cache() {
tablet_get_security_patch $page_dir security_patch
tablet_get_updated $page_dir updated
echo "$spell ${version:-0} ${patchlevel:-0} ${security_patch:-0}
${updated:-0}"
+ elif [[ $spell == alter ]]; then
+ version=$(installed_version alter)
+ echo "$spell ${version:-0} ${patchlevel:-0} ${security_patch:-0}
${updated:-0}"
else
error_message "${PROBLEM_COLOR}Creation of the cache failed at
$spell," \
"please run cleanse --tablet and retry. If some spells" \



  • [SM-Commit] GIT changes to master sorcery by Jaka Kranjc (2a6ae2c40ccb8adb5734177fffd783b813255f36), Jaka Kranjc, 12/04/2008

Archive powered by MHonArc 2.6.24.

Top of Page