buildrepo: add repository description/version

This commit is contained in:
Natanael Copa 2009-09-03 16:35:00 +00:00
parent ad9133049a
commit 2cb07ae9b2

View File

@ -97,7 +97,9 @@ build() {
oldindex="--index APKINDEX.tar.gz" oldindex="--index APKINDEX.tar.gz"
fi fi
tmpindex=$(mktemp).tar.gz tmpindex=$(mktemp).tar.gz
apk index $oldindex -o $tmpindex *.apk apk index $oldindex -o $tmpindex \
--description "$repo $(cd $aportsdir && git describe)" \
*.apk
abuild-sign $tmpindex && mv $tmpindex APKINDEX.tar.gz abuild-sign $tmpindex && mv $tmpindex APKINDEX.tar.gz
chmod 644 APKINDEX.tar.gz chmod 644 APKINDEX.tar.gz
rm -f tmp.* rm -f tmp.*