Beware of repository format update
This commit is contained in:
parent
8474f69819
commit
fa296d04d5
@ -17,4 +17,9 @@ fi
|
|||||||
|
|
||||||
cd "${PORTDIR}"/metadata/news || die "failed to cd into ${PORTDIR}/metadata/news"
|
cd "${PORTDIR}"/metadata/news || die "failed to cd into ${PORTDIR}/metadata/news"
|
||||||
git clean -fdxq || die "failed to clean git repo!"
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user