src/Pure/General/mercurial.scala
changeset 73624 f033d4f661e9
parent 73611 cc36841eeff6
child 73702 7202e12cb324
equal deleted inserted replaced
73618:4b413b78cd94 73624:f033d4f661e9
    76       Isabelle_System.with_tmp_file("rev", ext = ".tar.gz")(archive_path =>
    76       Isabelle_System.with_tmp_file("rev", ext = ".tar.gz")(archive_path =>
    77       {
    77       {
    78         val content = download_archive(rev = rev, progress = progress)
    78         val content = download_archive(rev = rev, progress = progress)
    79         Bytes.write(archive_path, content.bytes)
    79         Bytes.write(archive_path, content.bytes)
    80         progress.echo("Unpacking " + rev + ".tar.gz")
    80         progress.echo("Unpacking " + rev + ".tar.gz")
    81         Isabelle_System.gnutar("-xzf " + File.bash_path(archive_path) + " --strip-components=1",
    81         Isabelle_System.gnutar("-xzf " + File.bash_path(archive_path),
    82           dir = dir, original_owner = true).check
    82           dir = dir, original_owner = true, strip = 1).check
    83       })
    83       })
    84     }
    84     }
    85   }
    85   }
    86 
    86 
    87 
    87