1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-05 23:10:12 +01:00

fd-commit support for disabled updates

Also fix support for replacement builds
This commit is contained in:
Daniel Martí 2014-01-28 00:00:34 +01:00
parent 1b792c78de
commit 778b15322c

View File

@ -60,19 +60,31 @@ while read line; do
fullname="$id"
fi
onlybuild=true
newbuild=false
while read l; do
if [[ "$l" == "+Build:"* ]]; then
if [[ "$l" == "-Build:"* ]]; then
onlybuild=false
elif [[ "$l" == "+Build:"* ]]; then
if $newbuild; then
onlybuild=false
fi
newbuild=true
build=${l#*:}
version=${build%%,*}
build=${build#*,}
vercode=${build%%,*}
elif $newbuild && $onlybuild [[ "$l" == "+"*"disable="* ]]; then
disable=true
fi
done < <(git diff HEAD -- "$file")
if $newbuild ; then
message="Update $fullname to $version ($vercode)"
if $newbuild && $onlybuild; then
if $disable; then
message="Don't update $fullname to $version ($vercode)"
else
message="Update $fullname to $version ($vercode)"
fi
else
message="$fullname:"
fi