mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
fd-commit support for disabled updates
Also fix support for replacement builds
This commit is contained in:
parent
1b792c78de
commit
778b15322c
1 changed files with 15 additions and 3 deletions
16
fd-commit
16
fd-commit
|
|
@ -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
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue