Skip to Content.
Sympa Menu

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

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 (766cfd7e1d2a88c26e013ff25d267e367e479149)
  • Date: Fri, 11 Apr 2008 06:32:14 -0500

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

ChangeLog | 2 ++
var/lib/sorcery/modules/libsorcery | 16 ++++++++--------
2 files changed, 10 insertions(+), 8 deletions(-)

New commits:
commit 766cfd7e1d2a88c26e013ff25d267e367e479149
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>

libsorcery: rewrote log_list to conform with sorcery standards and be 50
times faster

diff --git a/ChangeLog b/ChangeLog
index f4cf4e8..0984880 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2008-04-11 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* libressurect: always use the saved version after setting the spell
+ * libsorcery: rewrote log_list to conform with sorcery standards and
be 50
+ times faster

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 d1d8329..03acf36 100755
--- a/var/lib/sorcery/modules/libsorcery
+++ b/var/lib/sorcery/modules/libsorcery
@@ -1146,14 +1146,14 @@ function fix_installed_spells() {
##
#---------------------------------------------------------------------
function log_list() {
-
- for LINE in `all_spell_status`; do
- SPELL=`echo $LINE | cut -d : -f1`
- VER=`echo $LINE | cut -d : -f4`
- echo "$SPELL-$VER"
- echo "$SPELL-$VER$EXTENSION"
- done
-
+ local spell version
+ while read spell version; do
+ # the install and md5sum logs are not compressed
+ echo "$spell-$version"
+ # the compile log usually is compressed
+ # FIXME $EXTENSION may be the wrong one if the user changed it
+ echo "$spell-$version$EXTENSION"
+ done < <(all_spell_status | cut -d: -f1,4 --output-delimiter=" ")
}






Archive powered by MHonArc 2.6.24.

Top of Page