Fix dev install (yum -y...)

Fixes an issue in 410408ef1b where
we removed the -y options for the pip RPM install. This functionally
broke the dev mode playbook unless you had manually installed pip
in the container (not normally the case for RDO images).

Change-Id: Ic96d9eb708bff763cbe4395cf7770b5239879309
Closes-bug: #1816775
This commit is contained in:
Dan Prince 2019-02-20 09:33:36 -05:00
parent 410408ef1b
commit 8f0c6bf141
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ USER root
COPY refspec_projects /root/refspec_projects
RUN /bin/bash -c 'PKG="$(command -v dnf || command -v yum)"; \
PKG_MGR="$(echo ${PKG:(-3)})"; \
if [ $PKG_MGR == "dnf" ]; then $PKG install python3-pip; PIP=pip3; else $PKG install python-pip; \
if [ $PKG_MGR == "dnf" ]; then $PKG install -y python3-pip; PIP=pip3; else $PKG install -y python-pip; \
PIP=pip; fi; \
cd /; \
for X in $(ls /root/refspec_projects/*.tar.gz); do $PIP install $X; done; \