X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=BUILD.sh;h=b472156272aba6161b1bae6a8f7b28e0b018ce58;hb=ff242e37a515d4e13349db49a103c9a8c235cbdb;hp=996e7af130a9d8c49e83162d4ef2d0027afff58f;hpb=102d3687cd1a5106f86f1f5b4fc76c22084a017c;p=osm%2FSO.git diff --git a/BUILD.sh b/BUILD.sh index 996e7af1..b4721562 100755 --- a/BUILD.sh +++ b/BUILD.sh @@ -114,10 +114,10 @@ fi if [[ $PLATFORM == ub16 ]]; then PLATFORM_REPOSITORY=${1:-OSM} - PLATFORM_VERSION=${2:-4.3.1.0.50309} + PLATFORM_VERSION=${2:-4.3.1.0.53704} elif [[ $PLATFORM == fc20 ]]; then PLATFORM_REPOSITORY=${1:-OSM} # change to OSM when published - PLATFORM_VERSION=${2:-4.3.1.0.50310} + PLATFORM_VERSION=${2:-4.3.1.0.53705} else echo "Internal error: unknown platform $PLATFORM" exit 1 @@ -180,14 +180,24 @@ fi if [[ $PLATFORM == ub16 ]]; then # install the RIFT platform code: - sudo apt-get install -y --allow-downgrades rw.toolchain-rwbase=${PLATFORM_VERSION} \ - rw.toolchain-rwtoolchain=${PLATFORM_VERSION} \ - rw.core.mgmt-mgmt=${PLATFORM_VERSION} \ - rw.core.util-util=${PLATFORM_VERSION} \ - rw.core.rwvx-rwvx=${PLATFORM_VERSION} \ - rw.core.rwvx-rwdts=${PLATFORM_VERSION} \ - rw.automation.core-RWAUTO=${PLATFORM_VERSION} \ - rw.core.rwvx-rwha-1.0=${PLATFORM_VERSION} + # remove these packages since some files moved from one to the other, and one was obsoleted + # ignore failures + + PACKAGES="rw.toolchain-rwbase rw.toolchain-rwtoolchain rw.core.mgmt-mgmt rw.core.util-util \ + rw.core.rwvx-rwvx rw.core.rwvx-rwdts rw.automation.core-RWAUTO rw.core.rwvx-rwha-1.0" + # this package is obsolete. + OLD_PACKAGES="" + for package in $PACKAGES $OLD_PACKAGES; do + sudo apt remove -y $package || true + done + + packages="" + for package in $PACKAGES; do + packages="$packages $package=${PLATFORM_VERSION}" + done + sudo apt-get install -y --allow-downgrades $packages + + sudo apt-get install python-cinderclient sudo chmod 777 /usr/rift /usr/rift/usr/share