Beware of repository format update

This commit is contained in:
hasufell 2015-08-14 17:37:19 +02:00
parent 8474f69819
commit fa296d04d5
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020

View File

@ -17,4 +17,9 @@ fi
cd "${PORTDIR}"/metadata/news || die "failed to cd into ${PORTDIR}/metadata/news"
git clean -fdxq || die "failed to clean git repo!"
cp -a */* . || die "could not copy news dirs to base news dir!"
if [[ -n "$(find . -mindepth 1 -maxdepth 1 -type d -name "*-*-*")" ]] ; then
die "it seems the repository format of proj/gentoo-news has changed! Update your script!"
else
cp -a */* . || die "could not copy news dirs to base news dir!"
fi