update_check.sh: extract sourceforge project name from URL instead of guessing it.
This commit is contained in:
parent
1faa83dc6e
commit
c36f464f4d
1 changed files with 2 additions and 1 deletions
|
@ -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*)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue