Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=f84143cde11ed679d0c74d9fe60e4813bc95c593

commit f84143cde11ed679d0c74d9fe60e4813bc95c593
Author: Marius Cirsta <mfor...@gmail.com>
Date:   Sat Jul 9 19:45:49 2011 +0300

* introduced parameter to define rss limit

diff --git a/source/include/sourceforge.sh b/source/include/sourceforge.sh
index b99b76e..1a47224 100644
--- a/source/include/sourceforge.sh
+++ b/source/include/sourceforge.sh
@@ -47,6 +47,8 @@
# * _F_sourceforge_subdir (defaults to ""): in case the source tarball
# is in some subdirectory under the files of the project. Example:
# "/fsarchiver-src/"
+# * _F_sourceforge_rss_limit (defaults to 20): the limit for the number of rss 
feeds
+# that will be fetched
###

if [ -z "$_F_sourceforge_name" ]; then
@@ -79,6 +81,10 @@ if [ -n "$_F_sourceforge_sep" ] && [ "$_F_sourceforge_sep" = 
"None" ]; then
_F_sourceforge_sep=""
fi

+if [ -z "$_F_sourceforge_rss_limit" ]; then
+       _F_sourceforge_rss_limit=20
+fi
+
###
# == OVERWRITTEN VARIABLES
# * url
@@ -87,7 +93,7 @@ fi
###
_F_sourceforge_url="http://sourceforge.net/projects/$_F_sourceforge_dirname";
_F_sourceforge_id="\$(Fwcat $_F_sourceforge_url/ | grep --color project-id | 
sed -e 's|.*project-id/||;s|/.*||')"
-_F_sourceforge_rss_url="http://sourceforge.net/api/file/index/project-id/$_F_sourceforge_id/mtime/desc/limit/20/rss";
+_F_sourceforge_rss_url="http://sourceforge.net/api/file/index/project-id/$_F_sourceforge_id/mtime/desc/limit/$_F_sourceforge_rss_limit/rss";
if [ -z "$url" ]; then
url="$_F_sourceforge_url"
fi
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to