summaryrefslogtreecommitdiffstats
path: root/update-alternatives
AgeCommit message (Collapse)Author
2018-01-23update-alternatives: add support for link renamesAlejandro del Castillo
During package upgrades, the link location might change. For example: Package A: 'update-alternatives --install /bin/app app /some/real/path 100' Package B: 'update-alternatives --install /sbin/app app /some/other/path 100' Opkg disallows a link change and throws an error. Debian does allow the operation, changing the link to the new location. Add support to follow the debian update-alternatives behavior. bugzilla #8344 Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
2018-01-21update-alternatives: fix the sed pattern in remove_altJackie Huang
'\>' is to matches the end of a word, but the executable is not always a 'word', e.g. /usr/lib64/busybox/usr/bin/[ then such alternatives can not be removed. So change to use '\s' in the pattern since the following character of the $path is whitespace. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
2016-12-30update-alternatives: warn when multiple providers have the same priorityChen Qi
Warn users when multiple providers of a utility have the same priority. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
2014-11-24update-alternatives: avoid double slash problemChen Qi
The link path stored by update-alternatives should always be absolute and so we do not need to add an additional slash when joining to $OPKG_OFFLINE_ROOT. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2014-10-30update-alternatives: Installing fails for "["Jian Liu
Installing packages using update-alternatives will give the following error lines: sed: -e expression #1, char 41: unterminated address regex sed: -e expression #1, char 42: unterminated address regex This is caused by the script update-alternatives. "[" can not be used directly in sed expression, which should be escaped in sed expression. Signed-off-by: Jian Liu <jian.liu@windriver.com> Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2014-01-14update-alternatives: Script copied from opkgPaul Barker
The update-alternatives script is being moved from opkg to opkg-utils to break possible circular dependencies in openembedded. As opkg will depend on libarchive soon, and may depend on other packages if certain options are enabled, opkg cannot itself provide update-alternatives if its dependencies require update-alternatives. opkg-utils has minimal build-time dependencies and so is a good place to put the update-alternatives script. Signed-off-by: Paul Barker <paul@paulbarker.me.uk>