More support for SF.net in auto-updater
This commit is contained in:
parent
36e3de7646
commit
5addaeb74f
|
@ -8,6 +8,10 @@ SF_version_dir () {
|
||||||
version_link 'http://sourceforge.net/.+/'"$1"'[0-9.]+/$'
|
version_link 'http://sourceforge.net/.+/'"$1"'[0-9.]+/$'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SF_version_tarball () {
|
||||||
|
version_link '[.]tar[.].*/download$'
|
||||||
|
}
|
||||||
|
|
||||||
GH_latest () {
|
GH_latest () {
|
||||||
prefetch_command_rel ../fetchgit/nix-prefetch-git
|
prefetch_command_rel ../fetchgit/nix-prefetch-git
|
||||||
revision "$("$(dirname "$0")/urls-from-page.sh" "$CURRENT_URL/commits" | grep /commit/ | head -n 1 | xargs basename )"
|
revision "$("$(dirname "$0")/urls-from-page.sh" "$CURRENT_URL/commits" | grep /commit/ | head -n 1 | xargs basename )"
|
||||||
|
|
|
@ -280,6 +280,12 @@ do_overwrite_just_version () {
|
||||||
set_var_value sha256 $CURRENT_HASH
|
set_var_value sha256 $CURRENT_HASH
|
||||||
}
|
}
|
||||||
|
|
||||||
|
minimize_overwrite() {
|
||||||
|
do_overwrite(){
|
||||||
|
do_overwrite_just_version
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
process_config () {
|
process_config () {
|
||||||
CONFIG_DIR="$(directory_of "$1")"
|
CONFIG_DIR="$(directory_of "$1")"
|
||||||
CONFIG_NAME="$(basename "$1")"
|
CONFIG_NAME="$(basename "$1")"
|
||||||
|
@ -297,9 +303,7 @@ process_config () {
|
||||||
exit 1;
|
exit 1;
|
||||||
}
|
}
|
||||||
[ -z "$(retrieve_meta fullRegenerate)" ] && eval "
|
[ -z "$(retrieve_meta fullRegenerate)" ] && eval "
|
||||||
do_overwrite(){
|
minimize_overwrite
|
||||||
do_overwrite_just_version
|
|
||||||
}
|
|
||||||
"
|
"
|
||||||
fi
|
fi
|
||||||
ensure_attribute_name
|
ensure_attribute_name
|
||||||
|
|
Loading…
Reference in a new issue