mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-14 02:50:12 +01:00
Merge branch 'master' into verbose-rewrite
This commit is contained in:
commit
223b0ea061
@ -217,6 +217,11 @@ _fdroid_checkupdates_project() {
|
||||
__complete_checkupdates
|
||||
}
|
||||
|
||||
_fd-commit() {
|
||||
__package
|
||||
}
|
||||
|
||||
complete -F _fdroid fdroid
|
||||
complete -F _fd-commit fd-commit
|
||||
|
||||
return 0
|
||||
|
26
fd-commit
26
fd-commit
@ -8,13 +8,28 @@ while read line; do
|
||||
if [[ "$line" == *M*metadata/*.txt ]]; then
|
||||
file=${line##* }
|
||||
|
||||
while read l; do
|
||||
[[ "$l" == "Auto Name:"* ]] && name=${l##*:}
|
||||
done < "$file"
|
||||
|
||||
id=${file##*/}
|
||||
id=${id%.txt*}
|
||||
if [ $# -gt 0 ]; then
|
||||
found=false
|
||||
for arg in "$@"; do
|
||||
if [ "$id" == "$arg" ]; then
|
||||
found=true
|
||||
break
|
||||
fi
|
||||
done
|
||||
$found || continue
|
||||
fi
|
||||
|
||||
[ -d metadata/$id ] && extra=metadata/$id
|
||||
|
||||
while read l; do
|
||||
if [[ "$l" == "Auto Name:"* ]]; then
|
||||
name=${l##*:}
|
||||
break
|
||||
fi
|
||||
done < "$file"
|
||||
|
||||
[ -n "$name" ] && id="$name ($id)"
|
||||
|
||||
newbuild=0
|
||||
@ -28,8 +43,7 @@ while read line; do
|
||||
fi
|
||||
done < <(git diff HEAD -- "$file")
|
||||
|
||||
if [ $newbuild -eq 0 ]
|
||||
then
|
||||
if [ $newbuild -eq 0 ]; then
|
||||
message="$id:"
|
||||
else
|
||||
message="Update $id to $version ($vercode)"
|
||||
|
Loading…
Reference in New Issue
Block a user