diff options
author | edef <edef@unfathomable.blue> | 2022-04-11 16:08:20 +0000 |
---|---|---|
committer | edef <edef@unfathomable.blue> | 2022-04-11 16:36:28 +0000 |
commit | bed5094bf0a20069a13936d972058200eba48976 (patch) | |
tree | f9ee084c389945a034590ddb8bad572602a79287 /ripple/fossil/src/bin | |
parent | 62e3cac7747f6660d2b43ed5c21be8ab584dff5d (diff) | |
download | unf-legacy-bed5094bf0a20069a13936d972058200eba48976.tar.zst |
ripple/fossil: track file size
Change-Id: I424bd482d82471255f2ce2f17bb0b5c6eae3b77a
Diffstat (limited to 'ripple/fossil/src/bin')
-rw-r--r-- | ripple/fossil/src/bin/extract.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ripple/fossil/src/bin/extract.rs b/ripple/fossil/src/bin/extract.rs index e55c857..b21a063 100644 --- a/ripple/fossil/src/bin/extract.rs +++ b/ripple/fossil/src/bin/extract.rs @@ -38,7 +38,11 @@ fn extract(store: &fossil::Store, path: &Path, dir: &Directory) { fs::create_dir(&path).unwrap(); extract(store, &path, &Directory::from_pb(pb)); } - fossil::Node::File(fossil::FileRef { ident, executable }) => { + fossil::Node::File(fossil::FileRef { + ident, + executable, + size: _, + }) => { let mode = if executable { 0o755 } else { 0o644 }; let mut f = fs::OpenOptions::new() .write(true) |