hpk/src/tar
Nathan Fisher af41d1c006 Fix bug introduced revolving around the ustar prefix field. GNU tar
was not giving the full path to each file and ignoring the `prefix`
field. On investigation, the field is only to be used if the filename
is longer than 100 bytes. Since the library code had been simplified to
always use the prefix field this caused all filenames shorter than 100
bytes to fail.

Also updated `package-bootstrap` to the latest patch release, which has
a fix for completions being installed into the base directory rather
than the appropriate subdirectory.
2023-05-05 19:07:44 -04:00
..
error.rs Moved hpk-package all the way back into tree, fixed some clippy lints 2023-04-16 10:36:43 -04:00
header.rs Fix bug introduced revolving around the ustar prefix field. GNU tar 2023-05-05 19:07:44 -04:00
mod.rs Moved hpk-package all the way back into tree, fixed some clippy lints 2023-04-16 10:36:43 -04:00
node.rs Fix some clippy lints 2023-04-18 17:48:40 -04:00
README.md Moved hpk-package all the way back into tree, fixed some clippy lints 2023-04-16 10:36:43 -04:00

About

Derived originally from minitar, this crate implements basic functionality for creating and extracting tar archives. It has been adapted to allow creation of a Node (Tar header + 512byte blocks of data) from the raw data plus file metadata. This allows for better efficiency when it is embedded into another application (such as a package manager), as the raw data and metadata about each file can be extracted once and reused for purposes such as generating checksums, getting file sizes and creating packing lists.