diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/update-alternatives.bbclass | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/meta/classes/update-alternatives.bbclass b/meta/classes/update-alternatives.bbclass index 8f4d0976a9..0cefc51576 100644 --- a/meta/classes/update-alternatives.bbclass +++ b/meta/classes/update-alternatives.bbclass | |||
@@ -261,10 +261,7 @@ python perform_packagecopy_append () { | |||
261 | src = '%s/%s' % (pkgdest, alt_target) | 261 | src = '%s/%s' % (pkgdest, alt_target) |
262 | dest = '%s/%s' % (pkgdest, link_rename[alt_target]) | 262 | dest = '%s/%s' % (pkgdest, link_rename[alt_target]) |
263 | link = os.readlink(src) | 263 | link = os.readlink(src) |
264 | if os.path.isabs(link): | 264 | link_target = oe.path.realpath(src, pkgdest, True) |
265 | link_target = pkgdest + os.readlink(src) | ||
266 | else: | ||
267 | link_target = os.path.join(os.path.dirname(src), link) | ||
268 | 265 | ||
269 | if os.path.lexists(link_target): | 266 | if os.path.lexists(link_target): |
270 | # Ok, the link_target exists, we can rename | 267 | # Ok, the link_target exists, we can rename |