Commit Graph

17 Commits

Author SHA1 Message Date
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
Nathan Fisher
ccf6d5301a Add shells hook 2023-04-29 23:40:17 -04:00
Nathan Fisher
823ae06e2e Rethink Hooks as a struct 2023-04-26 07:48:05 -04:00
Nathan Fisher
1d595e0f1e Add push method for Cleanup struct, slightly simplifying code in the
installer
2023-04-19 07:35:38 -04:00
Nathan Fisher
bd5090069d Add Cleanup struct to run all hooks 2023-04-19 00:43:36 -04:00
641eff3378 Fix some clippy lints 2023-04-18 17:48:40 -04:00
6037836f6b Merge branch 'odin' of git.hitchhiker-linux.org:jeang3nie/hpk into odin 2023-04-17 00:29:37 -04:00
Nathan Fisher
13a97ff1d8 Adjust 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.
2023-04-16 19:15:12 -04:00
1e7a02e33d Moved hpk-package all the way back into tree, fixed some clippy lints 2023-04-16 10:36:43 -04:00
Nathan Fisher
f479dd28ad Add install_local function to cli app 2023-04-15 01:21:12 -04:00
Nathan Fisher
7fe884cd3e Add method to create an Installer struct from an archive path 2023-04-14 01:03:52 -04:00
c36b3b14ab Use try_for_each_with in Installer::install to avoid using a mutex
on the Sender.
2023-04-12 11:25:12 -04:00
d3b5d096e5 Use try_for_each_with in Creator::create in order to avoid putting
Sender in a mutex and return errors rather than passing messages
2023-04-12 11:15:13 -04:00
be0c8dc6e7 Massage Installer for better code readability 2023-04-11 22:37:02 -04:00
Nathan Fisher
13dff6bd96 Get basic package installation implemented, with several TODOS left. 2023-04-11 14:05:37 -04:00
1a4d202989 Expand InstallerError enum; 2023-04-08 11:45:39 -04:00
Nathan Fisher
ab6e7441f1 Create Installer struct 2023-04-07 19:12:28 -04:00