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
1 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,8 @@ update_check() {
if [ -z "$update_site" ]; then
case "$url" in
*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*)
url="http://code.google.com/p/$update_pkgname/downloads/list";;
*launchpad.net*)