Update for new news repository format

This commit is contained in:
hasufell 2015-08-21 22:39:10 +02:00
parent 2a7607cdea
commit a69365722e
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
1 changed files with 2 additions and 10 deletions

View File

@ -12,15 +12,7 @@ if [[ ${repository_name} == "gentoo" ]]; then
if [[ -e ${NEWSDIR} ]]; then
git -C "${NEWSDIR}" pull -q --ff
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
eend_die $?
ebegin "Cleaning news git repo"
git -C "${NEWSDIR}" clean -fdxq
eend_die $?
ebegin "Copying news to base directory"
cp -a "${NEWSDIR}"/*/* "${NEWSDIR}"
eend $?
eend $? "Try to remove ${PORTDIR}/metadata/news"
fi