Devstack: Delete old project before deciding how to get the new code
Change-Id: I7e34931dc7155a36475328d3e45d2759e2f36baf
This commit is contained in:
parent
395974bd03
commit
00d7a83efd
@ -34,26 +34,26 @@ function install_neutron_projects {
|
||||
pkg_list="networking-l2gw networking-sfc neutron-lbaas neutron-fwaas neutron-dynamic-routing neutron-vpnaas octavia vmware-nsxlib"
|
||||
for pkg in `echo $pkg_list`
|
||||
do
|
||||
pkg_renamed=`echo $pkg | sed 's/-/_/g'`
|
||||
sudo rm -rf /usr/local/lib/python2.7/dist-packages/${pkg_renamed}*
|
||||
sudo rm -rf /usr/local/lib/python3.5/dist-packages/${pkg_renamed}*
|
||||
sudo rm -rf ./src/${pkg_renamed}*
|
||||
if is_plugin_enabled $pkg; then
|
||||
echo "Plugin $pkg enabled explicitly with enable_plugin"
|
||||
elif use_library_from_git $pkg; then
|
||||
echo "Project $pkg enabled explicitly from LIBS_FROM_GIT"
|
||||
else
|
||||
pkg_renamed=`echo $pkg | sed 's/-/_/g'`
|
||||
sudo rm -rf /usr/local/lib/python2.7/dist-packages/${pkg_renamed}*
|
||||
sudo rm -rf /usr/local/lib/python3.5/dist-packages/${pkg_renamed}*
|
||||
sudo rm -rf ./src/${pkg_renamed}*
|
||||
sudo pip install -e "git+https://git.openstack.org/openstack/${pkg}#egg=${pkg_renamed}"
|
||||
sudo chown -R ${USER}:${USER} src/${pkg}
|
||||
fi
|
||||
done
|
||||
sudo rm -rf /usr/local/lib/python2.7/dist-packages/neutron
|
||||
sudo rm -rf /usr/local/lib/python2.7/dist-packages/neutron.egg*
|
||||
sudo rm -rf /usr/local/lib/python3.5/dist-packages/neutron
|
||||
sudo rm -rf /usr/local/lib/python3.5/dist-packages/neutron.egg*
|
||||
if is_service_enabled neutron; then
|
||||
echo "service Neutron is enabled explicitly by devstack"
|
||||
else
|
||||
sudo rm -rf /usr/local/lib/python2.7/dist-packages/neutron
|
||||
sudo rm -rf /usr/local/lib/python2.7/dist-packages/neutron.egg*
|
||||
sudo rm -rf /usr/local/lib/python3.5/dist-packages/neutron
|
||||
sudo rm -rf /usr/local/lib/python3.5/dist-packages/neutron.egg*
|
||||
sudo pip install -e "git+https://git.openstack.org/openstack/neutron#egg=neutron"
|
||||
sudo chown -R ${USER}:${USER} src/neutron
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user