Fixed changed name for pip package

Change-Id: I155d42b0b45444fe239cb4ac9bd7e26e5c835aa5
This commit is contained in:
Igor Yozhikov 2013-08-13 16:07:55 +04:00
parent 051eccd103
commit 647100abeb
2 changed files with 4 additions and 4 deletions

View File

@ -145,7 +145,7 @@ uninst()
# Uninstall trough pip
find_pip
# looking up for python package installed
PYPKG=$SERVICE_SRV_NAME
PYPKG="muranoclient"
_pkg=$($PIPCMD freeze | grep $PYPKG)
if [ $? -eq 0 ]; then
log "Removing package \"$PYPKG\" with pip"
@ -166,7 +166,7 @@ case $COMMAND in
;;
uninstall )
log "Uninstalling \"$SERVICE_SRV_NAME\" from system..."
log "Uninstalling muranoclient \"$SERVICE_SRV_NAME\" from system..."
uninst
;;

View File

@ -134,7 +134,7 @@ uninst()
# Uninstall trough pip
# looking up for python package installed
#PYPKG=`echo $SERVICE_SRV_NAME | tr -d '-'`
PYPKG=$SERVICE_SRV_NAME
PYPKG="muranoclient"
pip freeze | grep $PYPKG
if [ $? -eq 0 ]; then
log "Removing package \"$PYPKG\" with pip"
@ -155,7 +155,7 @@ case $COMMAND in
;;
uninstall )
log "Uninstalling \"$SERVICE_SRV_NAME\" from system..."
log "Uninstalling muranoclient \"$SERVICE_SRV_NAME\" from system..."
uninst
;;