saving uncommitted changes in /etc prior to emerge run
This commit is contained in:
parent
5c8973ba56
commit
66d36fe3a6
@ -9,16 +9,7 @@ ebegin "Updating news items"
|
||||
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}"
|
||||
rm -r "${NEWSDIR}"/2013-06-01-mysql-pbxt-dropped
|
||||
eend $?
|
||||
|
||||
eend $? "Try to remove ${PORTDIR}/metadata/news"
|
||||
|
@ -6,4 +6,3 @@ eend_die() {
|
||||
eend "$@"
|
||||
[[ $1 -ne 0 ]] && exit $1
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user