diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2009-11-18 03:53:23 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2010-01-07 12:58:16 +0100 |
commit | 758da30df2ca3abbdad24c972f590eaa40e70930 (patch) | |
tree | 2953ca2a10237aa98e4168b1edfa10ffd6e641b5 /recipes/update-alternatives/update-alternatives-cworth_0.99.154.bb | |
parent | 1700b4c84455186bc1d2f80bfc4ea65b51736cdb (diff) | |
download | openembedded-758da30df2ca3abbdad24c972f590eaa40e70930.tar.gz |
update-alternatives-cworth: use latest installed alternative
* if there is more alternatives with higest priority, use the one last
in alternatives file (latest installed)
* if target exists and its directory, remove link, otherwise new
alternative link is created inside that direstory
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes/update-alternatives/update-alternatives-cworth_0.99.154.bb')
-rw-r--r-- | recipes/update-alternatives/update-alternatives-cworth_0.99.154.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/recipes/update-alternatives/update-alternatives-cworth_0.99.154.bb b/recipes/update-alternatives/update-alternatives-cworth_0.99.154.bb index 6cab1e55ec..b95d6d5ff2 100644 --- a/recipes/update-alternatives/update-alternatives-cworth_0.99.154.bb +++ b/recipes/update-alternatives/update-alternatives-cworth_0.99.154.bb @@ -2,6 +2,8 @@ require update-alternatives-cworth.inc RPROVIDES_${PN} = "update-alternatives" +PR="${INC_PR}.0" + do_install () { install -d ${D}${sbindir} \ ${D}${sysconfdir}/alternatives \ |