From d4fd7f12176c0558742c91bc69897adcde171858 Mon Sep 17 00:00:00 2001 From: Adam Harwell Date: Sat, 11 Nov 2017 09:00:50 +0900 Subject: [PATCH] Enable gentoo in pip-and-virtualenv element Currently it will hit the `else` and try to apt-get, which fails. Change-Id: I951882cf3897ced165e167f12877c05ee62a5054 --- .../install.d/pip-and-virtualenv-source-install/04-install-pip | 3 +++ 1 file changed, 3 insertions(+) diff --git a/diskimage_builder/elements/pip-and-virtualenv/install.d/pip-and-virtualenv-source-install/04-install-pip b/diskimage_builder/elements/pip-and-virtualenv/install.d/pip-and-virtualenv-source-install/04-install-pip index 3e863831..0d4faa83 100755 --- a/diskimage_builder/elements/pip-and-virtualenv/install.d/pip-and-virtualenv-source-install/04-install-pip +++ b/diskimage_builder/elements/pip-and-virtualenv/install.d/pip-and-virtualenv-source-install/04-install-pip @@ -103,6 +103,9 @@ EOF fi echo "exclude=$packages" >> ${conf} fi +elif [[ $DISTRO_NAME = gentoo ]]; then + packages="dev-python/pip dev-python/virtualenv" + emerge -U $packages else # pre-install packages so dependencies are there. We will # overwrite with latest below.