forked from lix-project/lix
Ignore tar header entries
In particular, these are emitted by 'git archive' (in fetchGit).
This commit is contained in:
parent
d33dd6e6c0
commit
f2bd847092
|
@ -37,6 +37,7 @@ pub fn unpack_tarfile(source: Source, dest_dir: &str) -> Result<(), Error> {
|
||||||
tar::EntryType::Symlink => {
|
tar::EntryType::Symlink => {
|
||||||
std::os::unix::fs::symlink(file.header().link_name()?.unwrap(), dest_file)?;
|
std::os::unix::fs::symlink(file.header().link_name()?.unwrap(), dest_file)?;
|
||||||
}
|
}
|
||||||
|
tar::EntryType::XGlobalHeader | tar::EntryType::XHeader => {}
|
||||||
t => return Err(Error::Misc(format!("unsupported tar entry type '{:?}'", t))),
|
t => return Err(Error::Misc(format!("unsupported tar entry type '{:?}'", t))),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue