From: Mark Wooding Date: Sun, 19 Apr 2020 17:12:37 +0000 (+0100) Subject: bin/chroot-maint: Update the path correctly when following a symlink. X-Git-Url: https://git.distorted.org.uk/~mdw/distorted-chroot/commitdiff_plain/770c82289f13159361211624829a78fa8d893449 bin/chroot-maint: Update the path correctly when following a symlink. Oops. This was just embarrassing. --- diff --git a/bin/chroot-maint b/bin/chroot-maint index 9d2d366..ba6aa50 100755 --- a/bin/chroot-maint +++ b/bin/chroot-maint @@ -2375,7 +2375,7 @@ class CrossToolsJob (BaseJob): try: dest = dest[:dest.rindex("/")] except ValueError: dest = "" if path == "": path = link - else: path = "%s/%s" % (path, link) + else: path = "%s/%s" % (link, path) ## Work through the shopping list, copying the things it names into the ## cross-tools tree.