Update for new news repository format

This commit is contained in:
2015-08-21 22:03:14 +02:00
parent ba7dca8c5f
commit 8e1d6c5ba5

View File

@@ -9,15 +9,7 @@ ebegin "Updating news items"
if [[ -e ${NEWSDIR} ]]; then if [[ -e ${NEWSDIR} ]]; then
git -C "${NEWSDIR}" pull -q --ff git -C "${NEWSDIR}" pull -q --ff
else else
git clone -q https://anongit.gentoo.org/git/proj/gentoo-news.git "${NEWSDIR}" git clone -q https://anongit.gentoo.org/git/data/gentoo-news.git "${NEWSDIR}"
fi fi
eend_die $? eend $? "Try to remove ${PORTDIR}/metadata/news"
ebegin "Cleaning news git repo"
git -C "${NEWSDIR}" clean -fdxq
eend_die $?
ebegin "Copying news to base directory"
cp -a "${NEWSDIR}"/*/* "${NEWSDIR}"
eend $?