Skip to Content.
Sympa Menu

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

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 (432e5a2642ba01e45035ea2e65493a30bde1a00e)
  • Date: Fri, 11 Apr 2008 07:37:07 -0500

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

ChangeLog | 1 +
var/lib/sorcery/modules/libsorcery | 21 ++++++++++-----------
2 files changed, 11 insertions(+), 11 deletions(-)

New commits:
commit 432e5a2642ba01e45035ea2e65493a30bde1a00e
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>

formatting, "localisation" fixes to activity_log

diff --git a/ChangeLog b/ChangeLog
index 1fddd44..4b960d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
* libsorcery: rewrote log_list to conform with sorcery standards and
be 50
times faster; made it also echo castfs logs and echo absolute paths
rewrote clean_logs to be more slick and as a result a lot faster
+ formatting and "localisation" fixes to activity_log

2008-04-10 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* libressurect, libgpg: fixed some comments and error messages
diff --git a/var/lib/sorcery/modules/libsorcery
b/var/lib/sorcery/modules/libsorcery
index 3bc3622..20b997c 100755
--- a/var/lib/sorcery/modules/libsorcery
+++ b/var/lib/sorcery/modules/libsorcery
@@ -1187,20 +1187,19 @@ function clean_logs() {
## Updates the activity log.
##
#---------------------------------------------------------------------
-function activity_log() { (
+function activity_log() {
+ local date command spell version outcome info

lock_file $ACTIVITY_LOG
-
- DATE=`date -u +%Y%m%d:%H%M\(%z\)`
- COMMAND=$1
- SPELL=$2
- VERSION=$3
- OUTCOME=$4
- INFO=$5
-
- echo -e "$DATE\t$COMMAND\t$SPELL\t$VERSION\t$OUTCOME\t$INFO" >>
$ACTIVITY_LOG
+ date=$(date -u +%Y%m%d:%H%M\(%z\))
+ command=$1
+ spell=$2
+ version=$3
+ outcome=$4
+ info=$5
+ echo -e "$date\t$command\t$spell\t$version\t$outcome\t$info" >>
$ACTIVITY_LOG
unlock_file $ACTIVITY_LOG
-) }
+}


#---------------------------------------------------------------------



  • [SM-Commit] GIT changes to master sorcery by Jaka Kranjc (432e5a2642ba01e45035ea2e65493a30bde1a00e), Jaka Kranjc, 04/11/2008

Archive powered by MHonArc 2.6.24.

Top of Page