[SM-Commit] GIT changes to master quill by Andraž Levstik (9d6316abfb7fffd5e1cb2943158e120cace4b6e5)

Andraž Levstik scm at mail.sourcemage.org
Thu Mar 15 13:52:44 EDT 2007


GIT changes to master quill by Andraž Levstik <ruskie at mages.ath.cx>:

 var/lib/quill/ChangeLog           |    2 +-
 var/lib/quill/modules/libdetails  |    4 ++++
 var/lib/quill/modules/libperlcpan |    4 ++--
 var/lib/quill/version             |    2 +-
 4 files changed, 8 insertions(+), 4 deletions(-)

New commits:
commit 9d6316abfb7fffd5e1cb2943158e120cace4b6e5
Author: Andraž Levstik <ruskie at mages.ath.cx>
Commit: Andraž Levstik <ruskie at mages.ath.cx>

    bad logic fix for perlcpan and added a gap filler for downcasing

diff --git a/var/lib/quill/ChangeLog b/var/lib/quill/ChangeLog
index a1d2b46..a7998c5 100644
--- a/var/lib/quill/ChangeLog
+++ b/var/lib/quill/ChangeLog
@@ -1,7 +1,7 @@
 2007-03-15 Andraž "ruskie" Levstik <ruskie at mages.ath.cx>
 	* libcore: don't mess with the capitalisation so early
 	* libperlcpan: don't grab the metadata until sure we have
-	  something to work with
+	  something to work with, bad logic at finding if it exists or not
 
 2007-03-12 Jaka Kranjc <lynxlynxlynx at sourcemage.org>
 	* libhistory: escape & so sed doesn't print the previous header again
diff --git a/var/lib/quill/modules/libdetails b/var/lib/quill/modules/libdetails
index 66f2043..ecd45c6 100644
--- a/var/lib/quill/modules/libdetails
+++ b/var/lib/quill/modules/libdetails
@@ -6,10 +6,14 @@
 # and if so, give the user an opportunity to change the value
 
 function query_spell_name(){
+  #downcase before query
+  SPELL_NAME=$(tr '[[:upper:]]' '[[:lower:]]' <<< "$SPELL_NAME")
   if ! [[ $SPELL_NAME ]] ||
     ! query "Is $SPELL_NAME the proper spell name?" y; then
     query_msg "Please enter the spell name:"
     read "SPELL_NAME"
+#downcase after query
+    SPELL_NAME=$(tr '[[:upper:]]' '[[:lower:]]' <<< "$SPELL_NAME")
   fi
 }
 
diff --git a/var/lib/quill/modules/libperlcpan b/var/lib/quill/modules/libperlcpan
index 372c7a3..cda4dc8 100644
--- a/var/lib/quill/modules/libperlcpan
+++ b/var/lib/quill/modules/libperlcpan
@@ -39,8 +39,8 @@ function quill_cpan_core()
   SPELL_NAME="$1"
 
   quill_get_manifests
-  if ! zgrep -q -w -E "^${1}" $QUILL_TMP_DIR/02packages.details.txt.gz ||
-     ! zgrep -q -w -E "^'${1}'" $QUILL_TMP_DIR/03modlist.data.gz
+  if zgrep -q -w -E "^${1}" $QUILL_TMP_DIR/02packages.details.txt.gz ||
+     zgrep -q -w -E "^'${1}'" $QUILL_TMP_DIR/03modlist.data.gz
   then
     quill_get_cpan_meta $1
     SPELL_NAME="$(echo ${1} | sed -e 's/::/-/g')"
diff --git a/var/lib/quill/version b/var/lib/quill/version
index 61fc053..d25d752 100644
--- a/var/lib/quill/version
+++ b/var/lib/quill/version
@@ -1 +1 @@
-0.2.4-rc8
+0.2.4-rc9



More information about the SM-Commit mailing list