mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
14649c0035
commit
7f8eedaa86
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user