chiark / gitweb /
bin/chroot-maint: Update the path correctly when following a symlink.
[distorted-chroot] / bin / chroot-maint
index 9d2d366053e30fe77f5596a52511cbea9cea77d7..ba6aa50e97ce054daedbdc115e49f868dcfbddba 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.