saving uncommitted changes in /etc prior to emerge run

This commit is contained in:
hasufell 2015-08-17 21:16:24 +02:00 committed by Hans Wurst
parent 8a3ba2ad7e
commit 6efe594755
4 changed files with 8 additions and 22 deletions

View File

@ -2,7 +2,7 @@
# set PORTDIR # set PORTDIR
PORTDIR="$(cave print-repository-metadata --raw-name location gentoo)" PORTDIR="$(${CAVE} print-repository-metadata --raw-name location gentoo)"
PORTDIR="${PORTDIR#location=}" PORTDIR="${PORTDIR#location=}"
if [[ -z ${PORTDIR} || "$(dirname ${PORTDIR})" == "/" ]] ; then if [[ -z ${PORTDIR} || "$(dirname ${PORTDIR})" == "/" ]] ; then

View File

@ -3,23 +3,13 @@
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash" source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
source "/etc/paludis/hooks/set_portdir.bash" source "/etc/paludis/hooks/set_portdir.bash"
# you may change this to only update cache of specific overlays
overlay_list=( overlay_list=(
arx-libertatis $(${CAVE} print-repositories | grep -vE '(^gentoo$|^installed$|^installed-unpackaged$|^layman$|^paludis-overlay$|^repository$)')
desktop-overlay
dotnet
games-overlay
haskell
hasufell-overlay
libressl
media-overlay
prism-overlay
qt
torbrowser
tox-overlay
) )
ebegin "Syncing metadata cache for gentoo repository" ebegin "Syncing metadata cache for gentoo repository"
#rsync -avPq rsync://rsync.gentoo.org/gentoo-portage/metadata/md5-cache/ "${PORTDIR}"/metadata/md5-cache/ rsync -avPq rsync://rsync.gentoo.org/gentoo-portage/metadata/md5-cache/ "${PORTDIR}"/metadata/md5-cache/
egencache --jobs=$(nproc) --repo=gentoo --update --update-use-local-desc egencache --jobs=$(nproc) --repo=gentoo --update --update-use-local-desc
eend $? eend $?

View File

@ -1,7 +1,6 @@
#!/bin/bash #!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash" source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
source "${PALUDIS_EBUILD_DIR}/die_functions.bash"
source "/etc/paludis/hooks/set_portdir.bash" source "/etc/paludis/hooks/set_portdir.bash"
source "/etc/paludis/hooks/util_functions.bash" source "/etc/paludis/hooks/util_functions.bash"
@ -18,9 +17,6 @@ ebegin "Cleaning news git repo"
git -C "${NEWSDIR}" clean -fdxq git -C "${NEWSDIR}" clean -fdxq
eend_die $? eend_die $?
[[ -n "$(find "${NEWSDIR}" -mindepth 1 -maxdepth 1 -type d -name "*-*-*")" ]] &&
die "it seems the repository format of proj/gentoo-news has changed! Update your script!"
ebegin "Copying news to base directory" ebegin "Copying news to base directory"
cp -a "${NEWSDIR}"/*/* "${NEWSDIR}" cp -a "${NEWSDIR}"/*/* "${NEWSDIR}"
eend $? eend $?

View File

@ -91,8 +91,8 @@ app-office/ganttproject-bin::sunrise
<media-video/mpv-9999 <media-video/mpv-9999
>=net-voip/linphone-3.8.0 #>=net-voip/linphone-3.8.0
>=media-libs/mediastreamer-2.11.0 #>=media-libs/mediastreamer-2.11.0
>=net-libs/ortp-0.24.0 #>=net-libs/ortp-0.24.0
>=net-libs/belle-sip-1.4.0 #>=net-libs/belle-sip-1.4.0