1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-20 13:50:12 +01:00

fd-commit can now take app ids as filter; retab

This commit is contained in:
Daniel Martí 2013-11-03 11:50:44 +01:00
parent e069da3562
commit 8acbc33f0d
2 changed files with 46 additions and 32 deletions

View File

@ -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)"