summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorChristopher Larson <chris_larson@mentor.com>2012-12-28 22:19:23 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-07 11:09:40 +0000
commit7f8eedaa86c64ec67ece84cf636b7001b95db686 (patch)
tree885dc44418accd72e7971c43f45c4a953ede94d6 /meta/classes
parent14649c003550ee08b73b1d8dbf51343087295e7b (diff)
downloadpoky-7f8eedaa86c64ec67ece84cf636b7001b95db686.tar.gz
update-alternatives.bbclass: use absolute paths for link targets
This improves compatibility, as both the debian update-alternatives and the chkconfig alternatives require absolute paths. (From OE-Core rev: 2b8bf64f1f6999b65ddd3efc2c6ddb7e70fead53) Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/update-alternatives.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/update-alternatives.bbclass b/meta/classes/update-alternatives.bbclass
index a3631eca7e..556ee7cbae 100644
--- a/meta/classes/update-alternatives.bbclass
+++ b/meta/classes/update-alternatives.bbclass
@@ -298,7 +298,7 @@ python populate_packages_prepend () {
298 continue 298 continue
299 299
300 # Default to generate shell script.. eventually we may want to change this... 300 # Default to generate shell script.. eventually we may want to change this...
301 alt_target = os.path.relpath(alt_target, os.path.dirname(alt_link)) 301 alt_target = os.path.normpath(alt_target)
302 302
303 alt_setup_links += '\tupdate-alternatives --install %s %s %s %s\n' % (alt_link, alt_name, alt_target, alt_priority) 303 alt_setup_links += '\tupdate-alternatives --install %s %s %s %s\n' % (alt_link, alt_name, alt_target, alt_priority)
304 alt_remove_links += '\tupdate-alternatives --remove %s %s\n' % (alt_name, alt_target) 304 alt_remove_links += '\tupdate-alternatives --remove %s %s\n' % (alt_name, alt_target)