proper relative path;
authorwenzelm
Sun, 20 Dec 2020 20:14:05 +0100
changeset 72964 2621225b4bdd
parent 72963 f4124c389a62
child 72965 b7c9d6e48237
proper relative path;
src/Pure/Tools/build_job.scala
--- a/src/Pure/Tools/build_job.scala	Sun Dec 20 16:13:30 2020 +0100
+++ b/src/Pure/Tools/build_job.scala	Sun Dec 20 20:14:05 2020 +0100
@@ -30,8 +30,7 @@
 
     (read(Export.DOCUMENT_ID).text, split_lines(read(Export.FILES).text)) match {
       case (Value.Long(id), thy_file :: blobs_files) =>
-        val thy_path = Path.explode(thy_file)
-        val node_name = resources.file_node(thy_path, theory = theory)
+        val node_name = resources.file_node(Path.explode(thy_file), theory = theory)
 
         val results =
           Command.Results.make(
@@ -43,7 +42,7 @@
           {
             val path = Path.explode(file)
             val name = resources.file_node(path)
-            val src_path = File.relative_path(thy_path, path).getOrElse(path)
+            val src_path = File.relative_path(node_name.master_dir_path, path).getOrElse(path)
             Command.Blob(name, src_path, None)
           })
         val blobs_xml =