[SM-Commit] GIT changes to master sorcery by Jaka Kranjc (719e0efe04f0fcbc6e60aab58e1c3047f10492d2)

Jaka Kranjc scm at sourcemage.org
Fri Jun 20 14:11:11 EDT 2008


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

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

New commits:
commit 719e0efe04f0fcbc6e60aab58e1c3047f10492d2
Author: Jaka Kranjc <lynxlynxlynx at sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx at sourcemage.org>

    removed the unused build_install_queue() which is largely a duplicate of
          list_install_queue()

diff --git a/ChangeLog b/ChangeLog
index aa9ead0..0d89676 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,8 @@
 	  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
+	  removed the unused build_install_queue() which is largely a duplicate of
+	  list_install_queue()
 
 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 cb89072..9d4cd03 100644
--- a/var/lib/sorcery/modules/libqueue
+++ b/var/lib/sorcery/modules/libqueue
@@ -371,35 +371,6 @@ function list_install_queue() {
 }
 
 #---------------------------------------------------------------------
-##
-## Builds all spells in the install queue.
-##
-#---------------------------------------------------------------------
-function build_install_queue()  {
-
-  if  [  -f  $INSTALL_QUEUE  ];  then
-    lock_file $INSTALL_QUEUE
-
-    message  "The following spells will be updated :"
-    cat  $INSTALL_QUEUE
-
-    unset  SPELL
-    if    query  "Do you wish to edit ${FILE_COLOR}$INSTALL_QUEUE${DEFAULT_COLOR}?" n
-    then  edit_file  $INSTALL_QUEUE
-    fi
-
-    if [[ -s $INSTALL_QUEUE ]]; then
-      cast      `cat  $INSTALL_QUEUE`
-      rm              $INSTALL_QUEUE
-    fi
-
-    unlock_file $INSTALL_QUEUE
-  else
-    message  "No spells will be updated."
-  fi
-}
-
-#---------------------------------------------------------------------
 ## @Stdout history
 ##
 ## Display the history of the install queue for review



More information about the SM-Commit mailing list