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

fix test suite for non-GNU: remove GNUisms

* date --date= does not exist on BSD
This commit is contained in:
Hans-Christoph Steiner 2020-10-01 20:53:06 +02:00
parent ba5136b684
commit 9f394ead4b
No known key found for this signature in database
GPG Key ID: 3E177817BA1B9BFA

View File

@ -620,8 +620,7 @@ echo "com.politedroid_4.apk com.politedroid 2016-01-01" > stats/known_apks.txt
echo "com.politedroid_5.apk com.politedroid 2017-01-01" >> stats/known_apks.txt
echo "com.politedroid_6.apk com.politedroid 2018-01-01" >> stats/known_apks.txt
sed -i -e 's/ArchivePolicy:.*/ArchivePolicy: 1 versions/' metadata/com.politedroid.yml
# Get the java ms timestamp from UTC time
timestamp=$(date -u --date=2017-01-01 +%s)000
timestamp=1483228800 # $(date -u --date=2017-01-01 +%s)000
$fdroid update --pretty --nosign
grep -F "\"added\": $timestamp" repo/index-v1.json