summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--jjb/apex/apex.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/jjb/apex/apex.yml b/jjb/apex/apex.yml
index b41cedb9d..ec88031b1 100644
--- a/jjb/apex/apex.yml
+++ b/jjb/apex/apex.yml
@@ -478,7 +478,9 @@
# update / install the new rpm
if rpm -q opnfv-apex > /dev/null; then
- if sudo yum update -y $RPM_INSTALL_PATH | grep "does not update installed package"; then
+ if [ $(basename $OPNFV_RPM_URL) == $(rpm -q opnfv-apex).rpm ]; then
+ echo "RPM is already installed"
+ elif sudo yum update -y $RPM_INSTALL_PATH | grep "does not update installed package"; then
sudo yum downgrade -y $RPM_INSTALL_PATH;
fi
else