90-update-alternatives: do not set alternative for vim if we just have vim.tiny.
authorMichael Prokop <mika@grml.org>
Thu, 25 Aug 2011 08:57:43 +0000 (10:57 +0200)
committerMichael Prokop <mika@grml.org>
Thu, 25 Aug 2011 08:58:00 +0000 (10:58 +0200)
For whatever reason we get:

  % update-alternatives --list vim
  update-alternatives: error: no alternatives for vim.

otherwise and daily builds fail.

etc/grml/fai/config/scripts/GRMLBASE/90-update-alternatives

index 7b541f5..ab8870e 100755 (executable)
@@ -25,7 +25,6 @@ elif $ROOTCMD update-alternatives --list editor 2>/dev/null | grep -q vim.tiny ;
   echo "Setting vim.tiny as editor using update-alternatives."
   $ROOTCMD update-alternatives --set editor /usr/bin/vim.tiny
   $ROOTCMD update-alternatives --set vi     /usr/bin/vim.tiny
-  $ROOTCMD update-alternatives --set vim    /usr/bin/vim.tiny
   $ROOTCMD update-alternatives --set view   /usr/bin/vim.tiny
 else
   echo "Warning: No vim binary suitable for update-alternatives found."