bin/chroot-maint: Update the path correctly when following a symlink.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 19 Apr 2020 17:12:37 +0000 (18:12 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 19 Apr 2020 17:12:37 +0000 (18:12 +0100)
Oops.  This was just embarrassing.

bin/chroot-maint

index 9d2d366..ba6aa50 100755 (executable)
@@ -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.