allow uninstalls to fail on gentoo

The cleanup of packages should be more opertunistic, if it's not there
then fail quietly.

Change-Id: I207a1162abc9ca5e9636b8de192f21424db0f569
This commit is contained in:
Matthew Thode 2017-05-28 21:23:00 -05:00
parent 3ac57740c6
commit ce7ea9d34c
No known key found for this signature in database
GPG Key ID: 64A37BEAAE19A4E8

View File

@ -9,7 +9,11 @@ set -o pipefail
# make sure system is in a consistent state
echo 'PYTHON_TARGETS="python3_4"' >> /etc/portage/make.conf
eselect python set python3.4
emerge -C -q dev-lang/python:2.7 dev-vcs/git
# allow these uninstalls to fail as they may not be installed
set +e
emerge -C -q dev-lang/python:2.7
emerge -C -q dev-vcs/git
set -e
USE="-build" emerge -q --backtrack=99 --jobs=2 --update --newuse --deep --with-bdeps=y @world
# rebuild packages that might need it
USE="-build" emerge -q --jobs=2 --usepkg=n @preserved-rebuild