Two fixes from Martin Jansa <martin.jansa@gmail.com>.
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Thu, 3 Dec 2009 04:11:26 +0000 (04:11 +0000)
committergraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Thu, 3 Dec 2009 04:11:26 +0000 (04:11 +0000)
commita19597b2beb95ac615b515607dc56490586e6222
treec05b46aefae9ab37f550b872479f1eff5b7c6812
parentb65cb493330307f8028e7e8ae88f312cb47842b3
Two fixes from Martin Jansa <martin.jansa@gmail.com>.

* if there are more alternatives with highest priority, use the one last
  in alternatives file (latest installed)
* if target exists and is a directory, remove link, otherwise new
  alternative link is created inside that direstory

git-svn-id: http://opkg.googlecode.com/svn/trunk@439 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
utils/update-alternatives.in