update_check.sh: extract sourceforge project name from URL instead of guessing it.

This commit is contained in:
Christian Neukirchen 2014-11-01 19:04:21 +01:00
parent 1faa83dc6e
commit c36f464f4d

View File

@ -23,7 +23,8 @@ update_check() {
if [ -z "$update_site" ]; then if [ -z "$update_site" ]; then
case "$url" in case "$url" in
*sourceforge.net/sourceforge*) *sourceforge.net/sourceforge*)
url="http://sourceforge.net/projects/$update_pkgname/rss?limit=200";; sfname="$(printf %s "$url" | cut -d/ -f5)"
url="http://sourceforge.net/projects/$sfname/rss?limit=200";;
*code.google.com*|*googlecode*) *code.google.com*|*googlecode*)
url="http://code.google.com/p/$update_pkgname/downloads/list";; url="http://code.google.com/p/$update_pkgname/downloads/list";;
*launchpad.net*) *launchpad.net*)