+ sudo apt-get install python-cinderclient
+
+ sudo chmod 777 /usr/rift /usr/rift/usr/share
+
+ if $installSO; then
+ sudo apt-get install -y \
+ rw.core.mano-rwcal_yang_ylib-1.0 \
+ rw.core.mano-rwconfig_agent_yang_ylib-1.0 \
+ rw.core.mano-rwlaunchpad_yang_ylib-1.0 \
+ rw.core.mano-mano_yang_ylib-1.0 \
+ rw.core.mano-common-1.0 \
+ rw.core.mano-rwsdn_yang_ylib-1.0 \
+ rw.core.mano-mano-types_yang_ylib-1.0 \
+ rw.core.mano-rwcal-cloudsim-1.0 \
+ rw.core.mano-rwcal-1.0 \
+ rw.core.mano-rw_conman_yang_ylib-1.0 \
+ rw.core.mano-rwcalproxytasklet-1.0 \
+ rw.core.mano-rwlaunchpad-1.0 \
+ rw.core.mano-rwcal-openmano-vimconnector-1.0 \
+ rw.core.mano-rwcal-propcloud1-1.0 \
+ rw.core.mano-lpmocklet_yang_ylib-1.0 \
+ rw.core.mano-rwmon-1.0 \
+ rw.core.mano-rwcloud_yang_ylib-1.0 \
+ rw.core.mano-rwcal-openstack-1.0 \
+ rw.core.mano-rw.core.mano_foss \
+ rw.core.mano-rwmon_yang_ylib-1.0 \
+ rw.core.mano-rwcm-1.0 \
+ rw.core.mano-rwcal-mock-1.0 \
+ rw.core.mano-rwmano_examples-1.0 \
+ rw.core.mano-rwcal-cloudsimproxy-1.0 \
+ rw.core.mano-models-1.0 \
+ rw.core.mano-rwcal-aws-1.0
+ fi
+
+ if $installUI; then
+ sudo apt-get install -y \
+ rw.ui-about \
+ rw.ui-logging \
+ rw.ui-skyquake \
+ rw.ui-accounts \
+ rw.ui-composer \
+ rw.ui-launchpad \
+ rw.ui-debug \
+ rw.ui-config \
+ rw.ui-dummy_component
+ fi
+elif [[ $PLATFORM == fc20 ]]; then
+
+ temp=$(mktemp -d /tmp/rw.XXX)
+ pushd $temp
+
+ # yum does not accept the --nodeps and --replacefiles options so we
+ # download first and then install
+ yumdownloader 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-rwha-1.0-${PLATFORM_VERSION} \
+ rw.core.rwvx-rwdts-${PLATFORM_VERSION} \
+ rw.automation.core-RWAUTO-${PLATFORM_VERSION}
+
+ # Install one at a time so that pre-installed packages will not cause a failure
+ for pkg in *rpm; do
+ # Check to see if the package is already installed; do not try to install
+ # it again if it does, since this causes rpm -i to return failure.
+ if rpm -q $(rpm -q -p $pkg) >/dev/null; then
+ echo "WARNING: package already installed: $pkg"
+ else
+ sudo rpm -i --replacefiles --nodeps $pkg
+ fi
+ done
+
+ popd
+ rm -rf $temp
+
+ # this file gets in the way of the one generated by the build
+ sudo rm -f /usr/rift/usr/lib/libmano_yang_gen.so