make scripts fail on unsupported environments
authorDennis Groenen <tj.groenen@gmail.com>
Thu, 25 Oct 2012 15:40:22 +0000 (17:40 +0200)
committerDennis Groenen <tj.groenen@gmail.com>
Thu, 25 Oct 2012 15:40:29 +0000 (17:40 +0200)
This change was already made in preinst. Update the shared functions file to
reflect that change for the other scripts as well.

debian/scripts/functions

index c75f781..eb79512 100644 (file)
@@ -32,8 +32,8 @@ CHECK_ENV() {
           ENVIRONMENT="HARMATTAN"
           ;;
         *)
           ENVIRONMENT="HARMATTAN"
           ;;
         *)
-          # Unsupported, use the least strict environment (SDK)
-          ENVIRONMENT="SDK"
+          echo "busybox-power: unsupported environment: $PROD"
+          exit 1
           ;;
       esac
     fi
           ;;
       esac
     fi