More support for SF.net in auto-updater

This commit is contained in:
Michael Raskin 2014-09-02 13:08:18 +04:00
parent 36e3de7646
commit 5addaeb74f
2 changed files with 11 additions and 3 deletions

View File

@ -8,6 +8,10 @@ SF_version_dir () {
version_link 'http://sourceforge.net/.+/'"$1"'[0-9.]+/$'
}
SF_version_tarball () {
version_link '[.]tar[.].*/download$'
}
GH_latest () {
prefetch_command_rel ../fetchgit/nix-prefetch-git
revision "$("$(dirname "$0")/urls-from-page.sh" "$CURRENT_URL/commits" | grep /commit/ | head -n 1 | xargs basename )"

View File

@ -280,6 +280,12 @@ do_overwrite_just_version () {
set_var_value sha256 $CURRENT_HASH
}
minimize_overwrite() {
do_overwrite(){
do_overwrite_just_version
}
}
process_config () {
CONFIG_DIR="$(directory_of "$1")"
CONFIG_NAME="$(basename "$1")"
@ -297,9 +303,7 @@ process_config () {
exit 1;
}
[ -z "$(retrieve_meta fullRegenerate)" ] && eval "
do_overwrite(){
do_overwrite_just_version
}
minimize_overwrite
"
fi
ensure_attribute_name