150b728172Merge branch 'odin' of codeberg.org:jeang3nie/hpk into odin
odin
Nathan Fisher
2023-07-08 18:42:27 -0400
3e65c13a5bAdd Extended to version enum
Nathan Fisher
2023-07-08 18:40:06 -0400
35dfc99176Make it possible to compile on FreeBSD by conditionally using std::os::<linux,freebsd>::fs::MetadataExt. Not intending to use hpk on FreeBSD but this enables development from either platformNathan Fisher2023-06-24 10:18:48 -0400
af41d1c006Fix 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.
Nathan Fisher
2023-05-05 19:07:44 -0400
6037836f6bMerge branch 'odin' of git.hitchhiker-linux.org:jeang3nie/hpk into odinNathan Fisher2023-04-17 00:29:37 -0400
13a97ff1d8Adjust package installer to take &mut hooks as a parameter, which will be passed to each package is it is installed with all hooks being run after all packages have finished installation. Also fix some ordering issues with package installation so that post install scripts and appstream data are not included in the number of archive members for the sake of progress bars, etc.
Nathan Fisher
2023-04-16 19:15:12 -0400
1e7a02e33dMoved hpk-package all the way back into tree, fixed some clippy lintsNathan Fisher2023-04-16 10:36:43 -0400
f479dd28adAdd install_local function to cli app
Nathan Fisher
2023-04-15 01:21:12 -0400
7fe884cd3eAdd method to create an Installer struct from an archive path
Nathan Fisher
2023-04-14 01:03:52 -0400
c36b3b14abUse try_for_each_with in Installer::install to avoid using a mutex on the Sender.Nathan Fisher2023-04-12 11:25:12 -0400
d3b5d096e5Use try_for_each_with in Creator::create in order to avoid putting Sender in a mutex and return errors rather than passing messagesNathan Fisher2023-04-12 11:15:13 -0400
be0c8dc6e7Massage Installer for better code readabilityNathan Fisher2023-04-11 22:37:02 -0400
e6f392bd7aMerge branch 'odin' of git.hitchhiker-linux.org:jeang3nie/hpk-package into odinNathan Fisher2023-04-11 22:04:54 -0400
e0f497cb89Writer for tar nodes takes &self instead of selfNathan Fisher2023-04-11 22:03:09 -0400
13dff6bd96Get basic package installation implemented, with several TODOS left.
Nathan Fisher
2023-04-11 14:05:37 -0400
43d8c82c08Remove appstream from Specs and Package structs
Nathan Fisher
2023-04-10 18:41:23 -0400
f4e87ee500Merge remote-tracking branch 'hpk-cli/odin' into odin; This commit brings the cli hpk binary back into the hpk crate and places it behind a feature flag, enabling development to take place in a single repository.Nathan Fisher2023-04-10 01:06:01 -0400
89d36281e3Added some testing for version comparison and implemented PartialEq for Version manually
Nathan Fisher
2023-04-09 19:14:16 -0400
4cede60a80Merge branch 'odin' of git.hitchhiker-linux.org:jeang3nie/hpk-package into odinNathan Fisher2023-04-09 01:36:26 -0400
32b4f80715Fix some issues with getting tar header fields; Add some doc tests in tar module; Add some tests for version checks;
Nathan Fisher
2023-04-08 19:10:30 -0400
ca9c0d7cdbSkip directories when creating a package from directory; Take an optional directory when creating a package from file list;Nathan Fisher2023-04-06 10:41:10 -0400
9cf9d469f6Add any arch; Add archive_name method for Package; Ensure architecture matches when checking if a package is an upgrade;Nathan Fisher2023-04-04 22:02:58 -0400
7d6376d5c4Store target arch as HOST_ARCH const, use this as default value for Package structNathan Fisher2023-04-04 21:52:29 -0400
39b8664c9eAdded package Creator struct, with create method to process package entries fully multithreaded including compressing into the archive, as well as passing messages through an mpsc::channel() interface for use in a background thread in various frontends. Much better suited to task than previous create_package function. Untested.Nathan Fisher2023-03-27 03:18:20 -0400
ffcd6820d0Extend tar functionality to turn nodes and archives into byte vectors; Implement package creation using those methods;Nathan Fisher2023-03-25 12:28:44 -0400
bc1f1ed082Added Hooks enum; Add some doc comments for Package; Add some useful fields to Package struct; Add more cli functionality;Nathan Fisher2023-03-24 13:18:52 -0400
85a85a3810Add Item struct, which contains both a tar::Node and a plist entry. This struct can be created from just a Path parameter, allowing to read the data contained in a file only once during package creation or extraction.Nathan Fisher2023-03-23 14:43:25 -0400
4f44290a48Add optional owner to node creation from dataNathan Fisher2023-03-23 14:09:18 -0400