Date: Friday, May 1, 2015 @ 18:08:09
  Author: anatolik
Revision: 132601

Reduce installation messages pressure to users

Print useful information about suid bit on installation only.
Do not print useless 'see more info at man page'.

Less installation messages is better!

Modified:
  tup/trunk/tup.install

-------------+
 tup.install |    9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

Modified: tup.install
===================================================================
--- tup.install 2015-05-01 15:26:07 UTC (rev 132600)
+++ tup.install 2015-05-01 16:08:09 UTC (rev 132601)
@@ -3,12 +3,10 @@
 
 suid_msg() {
   if [ -f $suid_set ]; then
-    echo "$binary has suid bit set. It allows you to run commands in chroot-ed 
environment (e.g. for full dependency tracking)."
-    echo "See 'man tup' for more information."
+    echo ">>> $binary has suid bit set. It allows you to run commands in 
chroot-ed environment (e.g. for full dependency tracking)."
   else
-    echo "If you want to be able to run commands in chroot-ed environment 
(e.g. for full dependency tracking)" \
-         "you need to set suid bit on tup binary: 'sudo chmod +s $binary'."
-    echo "See 'man tup' for more information."
+    echo ">>> If you want to be able to run commands in chroot-ed environment 
(e.g. for full dependency tracking)"
+    echo "    set suid bit on tup binary: 'sudo chmod +s $binary'."
   fi
 }
 
@@ -23,7 +21,6 @@
 }
 
 post_upgrade() {
-  suid_msg
   [ -f $suid_set ] && chmod +s $binary
   rm -f $suid_set
   return 0

Reply via email to