Skip to Content.
Sympa Menu

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

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 (c24e7b8f1f5cce3e62da932b32a6d4e602e7dc58)
  • Date: Mon, 29 Jun 2009 03:27:25 -0500

GIT changes to master quill by Andraž Levstik <ruskie+2054d253 AT codemages.net>:

usr/bin/quill | 2 +-
var/lib/quill/ChangeLog | 6 ++++++
var/lib/quill/modules/libcore | 7 +++++++
var/lib/quill/modules/site_handlers/libfreshmeatxml | 4 +++-
var/lib/quill/version | 2 +-
5 files changed, 18 insertions(+), 3 deletions(-)

New commits:
commit c24e7b8f1f5cce3e62da932b32a6d4e602e7dc58
Author: Andraž Levstik <ruskie+2054d253 AT codemages.net>
Commit: Andraž Levstik <ruskie+2054d253 AT codemages.net>

updated for new Freshmeat API

diff --git a/usr/bin/quill b/usr/bin/quill
index 2ebdbfa..45f901c 100755
--- a/usr/bin/quill
+++ b/usr/bin/quill
@@ -39,7 +39,7 @@ QUILL_SPELL_DIR=~/.sourcemage/spells
QUILL_TMP_DIR=~/.sourcemage/tmp
QUILL_LIB_DIR=/var/lib/quill
QUILL_MODULES=$QUILL_LIB_DIR/modules
-QUILL_OUR_CONFIG_VERSION=4
+QUILL_OUR_CONFIG_VERSION=5
QUILL_CONFIG_VERSION=$QUILL_OUR_CONFIG_VERSION

#---
diff --git a/var/lib/quill/ChangeLog b/var/lib/quill/ChangeLog
index 17a901a..1843a91 100644
--- a/var/lib/quill/ChangeLog
+++ b/var/lib/quill/ChangeLog
@@ -1,3 +1,9 @@
+2009-06-29 Andraž "ruskie" Levstik <ruskie+f03a580f AT codemages.net>
+ * libcore: added new config variable FRESHMEAT_API_KEY
+ * libfreshmeatxml: updated to work with the new FM API
+ * quill: boosted config version
+ * version: 0.3.0-rc23
+
2009-05-31 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* libcore: added quad_query to handle ask-yes/ask-no/yes/no defaults
changed options for patches, tarballing and review accordingly
diff --git a/var/lib/quill/modules/libcore b/var/lib/quill/modules/libcore
index 34790e8..6873f81 100644
--- a/var/lib/quill/modules/libcore
+++ b/var/lib/quill/modules/libcore
@@ -140,6 +140,12 @@ function quill_rc() {

query_list "Do you want to always generate a patch on updates?"
QUILL_GEN_PATCH "${QUILL_GEN_PATCH:-ask-no}" yes no ask-yes ask-no

+ message "To use the Freshmeat mode you need an API key from your own"
+ message "Freshmeat account. To get this key go to:"
+ message "http://freshmeat.net/users/<USERNAME>/edit"
+ message "And copy paste it here"
+ query_string FRESHMEAT_API_KEY "Type or paste your Freshmeat API key" \
+ "$FRESHMEAT_API_KEY"
message "Thank you. Now generating ${QUILL_QUILLRC}"
cat << QUA > $QUILL_QUILLRC
QUILL_CONFIG_VERSION="$QUILL_OUR_CONFIG_VERSION"
@@ -152,6 +158,7 @@ function quill_rc() {
QUILL_TARBALL_SPELL="$QUILL_TARBALL_SPELL"
QUILL_MODIFICATIONS="$QUILL_MODIFICATIONS"
QUILL_GEN_PATCH="$QUILL_GEN_PATCH"
+ FRESHMEAT_API_KEY="$FRESHMEAT_API_KEY"
QUA
mkdir -p "$QUILL_SPELL_DIR" "$QUILL_GIT_DIR"
exit 0
diff --git a/var/lib/quill/modules/site_handlers/libfreshmeatxml
b/var/lib/quill/modules/site_handlers/libfreshmeatxml
index 63bc7ab..d4270fc 100644
--- a/var/lib/quill/modules/site_handlers/libfreshmeatxml
+++ b/var/lib/quill/modules/site_handlers/libfreshmeatxml
@@ -43,7 +43,9 @@ function quill_fmxml_core() {

if [[ ! -e ${FRESHMEAT_FILE} ]]; then
message -n "Attempting to retrieve project XML page ... "
- wget -q -Uquill -O ${FRESHMEAT_FILE} "${FRESHMEAT_XML_URL}" ||
+# now needs an API key
+# need to register on freshmeat to get one so this is user settable
+ curl --stderr /dev/null -d "{ \"auth_code\": \"$FRESHMEAT_API_KEY\" }"
-X GET -H "Content-Type: application/json" -o ${FRESHMEAT_FILE}
"${FRESHMEAT_XML_URL}" ||
{ error_msg "Error: unable to fetch project XML page" && return 1; }
message "Done"
fi
diff --git a/var/lib/quill/version b/var/lib/quill/version
index 773fbba..cea8782 100644
--- a/var/lib/quill/version
+++ b/var/lib/quill/version
@@ -1 +1 @@
-0.3.0-rc22
+0.3.0-rc23



  • [SM-Commit] GIT changes to master quill by Andraž Levstik (c24e7b8f1f5cce3e62da932b32a6d4e602e7dc58), Andraž Levstik, 06/29/2009

Archive powered by MHonArc 2.6.24.

Top of Page