opkg: don't run merger in case when /usr/lib/ipkg is link
authorMartin Jansa <Martin.Jansa@gmail.com>
Mon, 1 Mar 2010 07:11:08 +0000 (08:11 +0100)
committerMartin Jansa <Martin.Jansa@gmail.com>
Mon, 1 Mar 2010 07:24:04 +0000 (08:24 +0100)
commit09a79a497f9c362bf899a8be2295178c3ed18836
tree6276a1485c5829c0c50e93d046314794b16e7698
parenta8313b6b63c02b6d2171af9b2e4417fc739dacd2
opkg: don't run merger in case when /usr/lib/ipkg is link

* if there is link /usr/lib/ipkg -> /usr/lib/opkg, then merger will
  create backups of "both" alternatives directories, but they will be
  both the same /usr/lib/opkg/alternatives, then it will try to merge
  with output that every file is the same, sofar no real harm.
* Problem is after successfull merge, when it removes
  /usr/lib/ipkg/alternatives which is in this case the right
  alternatives in opkg :/
* If you've already this problem on your target then
*   # Restore old alternatives
*   rm -rf /usr/lib/opkg/alternatives
*   cp -ra /usr/lib/opkg/alternatives-backup /usr/lib/opkg/alternatives
*
*   # Regenerate links with right alternatives available
*   opkg install -force-reinstall busybox

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
recipes/opkg/opkg.inc
recipes/opkg/update-alternatives-merge.inc