# HG changeset patch # User Pascal Bellard # Date 1299838936 -3600 # Node ID a894aa42f46b85cfeaf095b000a909c3f5a5856b # Parent 8ca0fdca7d34ab8d0f5de189c5a87a89da74cb23 nvidia: allow post_install without tty (again) diff -r 8ca0fdca7d34 -r a894aa42f46b nvidia/receipt --- a/nvidia/receipt Fri Mar 11 09:47:15 2011 +0100 +++ b/nvidia/receipt Fri Mar 11 11:22:16 2011 +0100 @@ -94,7 +94,8 @@ echo "================================================================================" echo "For installing this package, you have to accept the $PACKAGE license." echo "The license is stored in /usr/share/licenses/$PACKAGE " - if [ "$(tty)" != "not a tty" ]; then + if [ "$(tty)" != "not a tty" -a "$step_running" != + "Looking for build dependencies" ]; then echo -n "Would you like to read the license (y/N) : "; read anser if [ "$anser" = "y" ]; then more < /usr/share/licenses/"$PACKAGE"/LICENSE