[Pkg-octave-commit] rev 754 - trunk/packages/octaviz/debian

Thomas Weber thomas-guest at costa.debian.org
Mon Sep 25 06:48:58 UTC 2006


Author: thomas-guest
Date: 2006-09-25 06:48:57 +0000 (Mon, 25 Sep 2006)
New Revision: 754

Modified:
   trunk/packages/octaviz/debian/check-symlink.sh
Log:
Modify broken symlinks on the buildds


Modified: trunk/packages/octaviz/debian/check-symlink.sh
===================================================================
--- trunk/packages/octaviz/debian/check-symlink.sh	2006-09-25 05:39:17 UTC (rev 753)
+++ trunk/packages/octaviz/debian/check-symlink.sh	2006-09-25 06:48:57 UTC (rev 754)
@@ -1,24 +1,42 @@
 #!/bin/sh
 
-# Check the octave-config symlink; send an abort message (and abort the build)
-# if the status is manual
+# Check the octave-config symlink; adjust a manually set symlink for octave-config
 
 status=$(/usr/sbin/update-alternatives --display octave-config | grep -c "status is manual");
+version_false=$(file -n /etc/alternatives/octave-config | grep -c 2.1.71)
+symlink_false=$(file -n /etc/alternatives/octave-config | grep -c "broken")
+# Normal output of file for a broken symlink:
+# 	$ file file2
+# 	file2: broken symbolic link to `file1'
 fqdn=$(/bin/hostname --fqdn);
 
-if [ $status == "1" ]
+if [ $status == "1" ] && [ $version_false == "1" ] && [ $symlink_false == "1" ]
   then
     echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
-    echo "  ABORTING BUILD!"
-    echo "  octave-config alternative symlink is set to 'manual'."
+    echo "  MODIFYING BUILDD ENVIRONMENT!"
+    echo "  octave-config alternative symlink is set to 'manual'"
+    echo "  and pointing to a non-existent octave-config-2.1.71."
+    echo
+    echo "  This symlink will now be adjusted by running "
+    echo "    # update-alternatives --auto octave-config"
+    echo
     echo "  If you are the buildd admin of this machine, please read"
     echo "    http://lists.debian.org/debian-devel/2006/01/msg01566.html"
-    echo "  If you are in a hurry, just run "
-    echo "    # update-alternatives --auto octave-config"
-    echo "  in the buildd chroot"
+    echo "  for an explanation."
     echo
+    echo "  We are sorry for this intervention, "
+    echo "  but 9 months without a reaction made this necessary."
+    echo
     echo "  FQDN of this host: $fqdn"
     echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
+
+    update-alternatives --auto octave-config
+
   fi
 
-exit $status
+/usr/sbin/update-alternatives --display octave-config 
+ls -l /usr/bin/oct*
+ls -l /etc/alternatives/oct*
+
+# exit $status
+exit 0




More information about the Pkg-octave-commit mailing list