Browse code

Revert "cleanup potentially installed older oslo.config"

Icehouse is for long behind our back, so let's remove that hack.

Conflicts:
lib/oslo

This reverts commit db5fadb5cb768820df54fc3d1c7428a57b511582.

Change-Id: I06d3b0a8779ba51e05c439832ef3b7dbdc97ded1

Ihar Hrachyshka authored on 2014/07/29 18:45:29
Showing 2 changed files
... ...
@@ -84,7 +84,6 @@ if [[ -d $TOP_DIR/extras.d ]]; then
84 84
 fi
85 85
 
86 86
 # Clean projects
87
-cleanup_oslo
88 87
 cleanup_cinder
89 88
 cleanup_glance
90 89
 cleanup_keystone
... ...
@@ -38,10 +38,6 @@ OSLO_BIN_DIR=$(get_python_exec_prefix)
38 38
 
39 39
 # install_oslo() - Collect source and prepare
40 40
 function install_oslo {
41
-    # TODO(sdague): remove this once we get to Icehouse, this just makes
42
-    # for a smoother transition of existing users.
43
-    cleanup_oslo
44
-
45 41
     git_clone $CLIFF_REPO $CLIFF_DIR $CLIFF_BRANCH
46 42
     setup_install $CLIFF_DIR
47 43
 
... ...
@@ -70,17 +66,6 @@ function install_oslo {
70 70
     setup_install $TASKFLOW_DIR
71 71
 }
72 72
 
73
-# cleanup_oslo() - purge possibly old versions of oslo
74
-function cleanup_oslo {
75
-    # this means we've got an old oslo installed, lets get rid of it
76
-    if ! python -c 'import oslo.config' 2>/dev/null; then
77
-        echo "Found old oslo.config... removing to ensure consistency"
78
-        local PIP_CMD=$(get_pip_command)
79
-        pip_install oslo.config
80
-        sudo $PIP_CMD uninstall -y oslo.config
81
-    fi
82
-}
83
-
84 73
 # Restore xtrace
85 74
 $XTRACE
86 75