diskimage-builder/elements/fedora/install.d/00-fedora-fixup-pyopenssl
Ben Nemec f6ba2aeaf4 set -e all the things
Using set -e in all of our scripts will prevent some subtle bugs
from slipping in, and will allow us to enforce use of set -e with
tooling.

This change also adds -u and set -o pipefail in the less complex
scripts where it is unlikely to cause problems.  A follow-up change
will enable those options in the complex scripts so that if it
breaks something it can be reverted easily.

Change-Id: I0ad358ccb98da7277a0ee2e9ce8fda98438675eb
2014-04-25 17:38:51 -05:00

15 lines
629 B
Bash
Executable File

#!/bin/bash
set -eu
set -o pipefail
# FIXME: To avoid conflict between the pyOpenSSL installed via python-pip
# and pyOpenSSL installed via yum, we are going to sort it out installing
# it earlier at the beginning of the image building process. Pyhton-pip
# is installing pyOpenSSL as part of satisfying the requirements.txt
# in python-glanceclient and afterwards yum tries to install it as a
# dependency of the python-paste package needed for the heat element,
# this seems to be conflicting and causing the image building process to
# fail. The problem is hapenning on a Fedora 18 system.
install-packages python-pyopenssl