[prev in list] [next in list] [prev in thread] [next in thread]
List: openembedded-core
Subject: [OE-core] [PATCH 1/6] update-alternatives.bbclass: use absolute paths for link targets
From: kergoth () gmail ! com (Christopher Larson)
Date: 2012-12-29 5:19:23
Message-ID: 3f926cfa57debf042253c7c0db7be5b63de98209.1356758000.git.chris_larson () mentor ! com
[Download RAW message or body]
From: Christopher Larson <chris_larson at mentor.com>
This improves compatibility, as both the debian update-alternatives and the
chkconfig alternatives require absolute paths.
Signed-off-by: Christopher Larson <chris_larson at mentor.com>
---
meta/classes/update-alternatives.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/update-alternatives.bbclass \
b/meta/classes/update-alternatives.bbclass index a3631ec..556ee7c 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)
--
1.8.0
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic