Created
November 6, 2014 18:00
-
-
Save cloudnull/cc85846d9c5f049923ab to your computer and use it in GitHub Desktop.
Glance Patch for Juno
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e -v | |
GLANCE_PATH="/opt/python-glanceclient_patched" | |
GLANCE_VERSION="0.14.1" | |
GLANCE_PATCH_REF="refs/changes/42/120442/1" | |
if [[ "$(pip list | grep glance)" ]]; then | |
if [[ ! -d "${GLANCE_PATH}" ]]; then | |
mkdir -p "${GLANCE_PATH}" | |
else | |
rm -rf "${GLANCE_PATH}" | |
mkdir -p "${GLANCE_PATH}" | |
fi | |
pushd "${GLANCE_PATH}" | |
git clone https://github.com/openstack/python-glanceclient "${GLANCE_PATH}" | |
git checkout "${GLANCE_VERSION}" | |
git fetch https://review.openstack.org/openstack/python-glanceclient "${GLANCE_PATCH_REF}" | |
git checkout FETCH_HEAD | |
popd | |
pip install "${GLANCE_PATH}" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment