summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorChristopher Larson <chris_larson@mentor.com>2012-12-28 22:19:23 -0700
committerSaul Wold <sgw@linux.intel.com>2013-01-04 22:12:05 -0800
commit2b8bf64f1f6999b65ddd3efc2c6ddb7e70fead53 (patch)
tree4f8a6ef5437acb952ba0b8b61fbf6e19e2fe06da /meta/classes
parent050a745413f8bb26212b84da391e0f7665f77728 (diff)
downloadopenembedded-core-2b8bf64f1f6999b65ddd3efc2c6ddb7e70fead53.tar.gz
openembedded-core-2b8bf64f1f6999b65ddd3efc2c6ddb7e70fead53.tar.bz2
openembedded-core-2b8bf64f1f6999b65ddd3efc2c6ddb7e70fead53.zip
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. Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
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 () {
continue
# Default to generate shell script.. eventually we may want to change this...
- alt_target = os.path.relpath(alt_target, os.path.dirname(alt_link))
+ alt_target = os.path.normpath(alt_target)
alt_setup_links += '\tupdate-alternatives --install %s %s %s %s\n' % (alt_link, alt_name, alt_target, alt_priority)
alt_remove_links += '\tupdate-alternatives --remove %s %s\n' % (alt_name, alt_target)