From 2b8bf64f1f6999b65ddd3efc2c6ddb7e70fead53 Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Fri, 28 Dec 2012 22:19:23 -0700 Subject: 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 Signed-off-by: Saul Wold --- meta/classes/update-alternatives.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta') 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) -- cgit v1.2.3