Skip to content

Commit

Permalink
preserve mtime when unpacking (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
d3v-null authored Jul 18, 2023
1 parent 24b1574 commit ded58a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ all-static = ["cfitsio-static"]
cfg-if = "1.0.0"
erfa = "0.2.1"
hifitime = "3.6.0"
indicatif = { version = "0.17.0", features = ["rayon"] }
indicatif = { version = "<=0.17.3", features = ["rayon"] } # subsequent versions have issues. see https://github.com/MWATelescope/Marlu/issues/25
itertools = "0.10.0"
lazy_static = "1.4.0"
log = "0.4.14"
Expand Down
2 changes: 2 additions & 0 deletions src/io/ms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ impl MeasurementSetWriter {
self.validate_path(&self.path)?;
let tar = GzDecoder::new(&DEFAULT_TABLES_GZ[..]);
let mut archive = Archive::new(tar);
archive.set_preserve_mtime(false);
archive.unpack(&self.path)?;
Ok(())
}
Expand All @@ -117,6 +118,7 @@ impl MeasurementSetWriter {
self.validate_path(&self.path)?;
let tar = GzDecoder::new(&SOURCE_TABLE_GZ[..]);
let mut archive = Archive::new(tar);
archive.set_preserve_mtime(false);
let source_table_path = self.path.join("SOURCE");
archive.unpack(&source_table_path)?;
Ok(())
Expand Down

0 comments on commit ded58a1

Please sign in to comment.