From 9e6261787c5a8c6a367fade3c8fd17df57610fa8 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sun, 12 May 2024 15:56:52 -0700 Subject: [PATCH] build/bin/sage-spkg: Just exit with error if experimental packages are not enabled --- build/bin/sage-spkg | 30 ++++-------------------------- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/build/bin/sage-spkg b/build/bin/sage-spkg index 8a4f3e4734f..2b84856ed5c 100755 --- a/build/bin/sage-spkg +++ b/build/bin/sage-spkg @@ -363,32 +363,10 @@ WRAPPED_SCRIPTS="build install preinst pipinst postinst $INSTALLED_SCRIPTS" warning_for_experimental_packages() { ############################ if [ x`cat "$PKG_SCRIPTS/type"` = x"experimental" ]; then if [ $YES != 1 -a -n "$PKG_NAME_UPSTREAM" ]; then - # We use /dev/tty here because our output may be redirected - # to a logfile, or line-buffered. - write_to_tty < /dev/tty 2>&1 - else - answer=n - fi - case "$answer" in - n*|N*) exit 1;; - esac - # Confirm the user's input. (This gives important - # feedback to the user when output is redirected to a logfile.) - echo > /dev/tty "OK, installing $PKG_NAME now..." + echo "Error: The package $PKG_NAME is marked as experimental." + echo "Use 'sage -i -y $PKG_BASE' to force installation of this package" + echo "or use the configure option --enable-experimental-packages" + exit 1 fi fi } ############################## warning_for_experimental_packages