Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master quill by Andraž Levstik (b334602663b69fb2ad7fe9d433eb94a8ecff46dc)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Andraž Levstik <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master quill by Andraž Levstik (b334602663b69fb2ad7fe9d433eb94a8ecff46dc)
  • Date: Sat, 11 Aug 2007 09:33:50 -0500

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

var/lib/quill/ChangeLog | 3 +++
var/lib/quill/modules/librubyraa | 28 +++++++++++++++-------------
var/lib/quill/version | 2 +-
3 files changed, 19 insertions(+), 14 deletions(-)

New commits:
commit b334602663b69fb2ad7fe9d433eb94a8ecff46dc
Author: Andraž Levstik <ruskie AT mages.ath.cx>
Commit: Andraž Levstik <ruskie AT mages.ath.cx>

librubyraa: minor fixups

diff --git a/var/lib/quill/ChangeLog b/var/lib/quill/ChangeLog
index f831146..ff58243 100644
--- a/var/lib/quill/ChangeLog
+++ b/var/lib/quill/ChangeLog
@@ -1,3 +1,6 @@
+2007-08-11 Andraž "ruskie" Levstik <ruskie AT mages.ath.cx>
+ * librubyraa: added to check if the project page exists yet
+
2007-07-12 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* libcore: fixed mirror indexing in check_source_urls messages
* libgpg: add the new source url after the last mirror url - fixed
ordering
diff --git a/var/lib/quill/modules/librubyraa
b/var/lib/quill/modules/librubyraa
index e0a9bff..f76ee82 100644
--- a/var/lib/quill/modules/librubyraa
+++ b/var/lib/quill/modules/librubyraa
@@ -26,19 +26,21 @@ function quill_raa_core(){
SPELL_NAME="$1"
project="$SPELL_NAME"
raa_project_file=${QUILL_TMP_DIR}/${project}.raa
- message "Attempting to retrieve project page..."
- wget -q -O $raa_project_file.tmp \
- http://raa.ruby-lang.org/project/$project/ || \
- error_msg "Error: unable to fetch project page" && \
- return 1
- sed -e "s:<a href=\"\(.*\)\".*:\1:g" \
- -e ":top;/<.*>/{;s/<[^<>]*>//g;t top;};/</{;N;b top;}" \
- $raa_project_file.tmp | \
- sed -e ":pot /:\s*$/{ N; s/\n//g; t pot}; /:$/{ b pot}" \
- -e "/^$/d" > $raa_project_file
- if $(head -n3 $raa_project_file | grep -q "RAA - Search") ; then
- error_msg "Error: project not found"
- return 1
+ if [[ ! -e ${raa_project_file} ]]; then
+ message "Attempting to retrieve project page..."
+ wget -q -O $raa_project_file.tmp \
+ http://raa.ruby-lang.org/project/$project/ || \
+ (error_msg "Error: unable to fetch project page" && \
+ return 1)
+ sed -e "s:<a href=\"\(.*\)\".*:\1:g" \
+ -e ":top;/<.*>/{;s/<[^<>]*>//g;t top;};/</{;N;b top;}" \
+ $raa_project_file.tmp | \
+ sed -e ":pot /:\s*$/{ N; s/\n//g; t pot}; /:$/{ b pot}" \
+ -e "/^$/d" > $raa_project_file
+ if $(head -n3 $raa_project_file | grep -q "RAA - Search") ; then
+ error_msg "Error: project not found"
+ return 1
+ fi
fi
SPELL_SHORT_DESCRIPTION="$(quill_raa_get_info "Short description"
"$raa_project_file" )"
SPELL_LICENSE="$(quill_raa_get_info "License" "$raa_project_file" )"
diff --git a/var/lib/quill/version b/var/lib/quill/version
index b003284..09c8683 100644
--- a/var/lib/quill/version
+++ b/var/lib/quill/version
@@ -1 +1 @@
-0.2.7
+0.2.8-rc1



  • [SM-Commit] GIT changes to master quill by Andraž Levstik (b334602663b69fb2ad7fe9d433eb94a8ecff46dc), Andraž Levstik, 08/11/2007

Archive powered by MHonArc 2.6.24.

Top of Page