#---
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