Move check for detected bundle earlier in install process.
authorTodd Naugle <toddn@harrisonconsoles.com>
Fri, 2 Sep 2016 15:37:37 +0000 (10:37 -0500)
committerTodd Naugle <toddn@harrisonconsoles.com>
Fri, 2 Sep 2016 15:39:23 +0000 (10:39 -0500)
Previously if the bundle being installed did not support the detected
system the user would get an error message about the .size file
being missing.

tools/linux_packaging/stage2.run.in

index 7ec369d180f32a8606398a86936c217e36b24312..113e5c64cd48737fe855f368bc4c877a6653c249 100755 (executable)
@@ -251,6 +251,21 @@ else
        ABI=
 fi
 
+####################################
+# Check if bundle is for this system
+####################################
+
+if [ ! -e ${PGM_NAME}_${ARCH}${ABI}-*.tar ]; then
+       echo ""
+       echo "!!! ERROR !!! Can't locate ${ARCH}${ABI} bundle file."
+       echo "The installer detected the system as ${ARCH}${ABI}, but this bundle"
+       echo "does not contain the files needed for that configuration."
+       echo ""
+       read -p "Press ENTER to exit installer:" BLAH
+       exit 1
+fi
+
+
 ####################
 # Check disk space
 ####################
@@ -360,14 +375,6 @@ echo "Bundle is on ${FILESYSTEM_TYPE} filesystem"
 # untar the correct bundle for us to install
 echo "Unpacking bundle for $ARCH${ABI}"
 
-if [ ! -e ${PGM_NAME}_${ARCH}${ABI}-*.tar ]; then
-       echo ""
-       echo "!!! ERROR !!! Can't locate ${ARCH}${ABI} bundle file."
-       echo ""
-       read -p "Press ENTER to exit installer:" BLAH
-       exit 1
-fi
-
 if ! tar -xf ${PGM_NAME}_${ARCH}${ABI}-*.tar; then
        echo ""
        echo "!!! ERROR !!! Can't unpack ${ARCH}${ABI} bundle file."