Commit graph

369 commits

Author SHA1 Message Date
c75c26eb48
Support libalpm 15 via alpm-rs 4.0.0
- exec.rs: Remove libfakeroot.so from LD_PRELOAD environment variable set
  in the transaction_agent function, when creating the ephemeral
  container with bubblewrap utilised for sandboxed transactions.
- Update Cargo.lock
- Cargo.toml: Change alpm-rs 3.0.5 to 4.0.0
2024-09-09 23:04:22 -04:00
e67cbd56ab
Parse empty operators 2024-09-03 17:08:22 -04:00
276e72ac7d
Bespoke pseudorandom_string function replaced with sample_string 2024-08-29 00:03:02 -04:00
fe3d060383
Add file extension to temporary files for editing
- Added ext function to the FileType impl to return a FileType extension
  for the relevant FileType.
- In the edit function, derive the file extension from said ext function.
- Simplified can_edit function with matches macro.
2024-08-28 16:43:22 -04:00
2c190b83c0
Use thread_prng from the rand crate instead of calling /dev/urandom 2024-08-28 16:12:00 -04:00
556ece1256
Additional length validation 2024-07-20 22:26:25 -04:00
e988b90c11
Release 0.8.4 2024-06-14 17:31:52 -04:00
8b3d4ee651
Cleaned up error handling in dist scripting 2024-06-14 17:31:38 -04:00
ae8c37e951
Addition of Process mtime function and expect calls 2024-06-11 20:51:32 -04:00
c956e7761f
Breaking change with nvidia driver 550.90.07 fixed 2024-06-11 17:38:26 -04:00
aa59e578e1
Process hierarchy in descending order sorted by mtime 2024-06-10 22:42:47 -04:00
4d037afbae
Target dependents during composition
- Along with some minor tweaks
2024-06-10 18:05:50 -04:00
9e979ab0b1
Corrected typo of command-line-utilities category slug 2024-06-07 19:02:29 -04:00
64b9d96ea5
Release 0.8.3 2024-06-07 18:54:26 -04:00
2a2c3cd3dc
Agent error handling and initialize trustdb during composition
- Initialize gnupg database during container composition
- Handle exit code 1 of agent as a general failure and changed resulting
  verbiage to 'general agent fault'. Shifted error codes up by one.
- Check if FD 1 is a terminal for colour detection in pacwrap-key
2024-05-31 17:30:55 -04:00
b30ffbc14b
More legible data structure for representing repositories
- AlpmRepository struct to increase legibility of repository data
  structure for future work.
2024-05-30 20:57:41 -04:00
736dae7aeb
Rework of synchronize_database function and handle empty queue
- Cleaned up synchronize_database function and use filter_handle prior
  to acquisition of handle iterator.
- In aggregate module when queue is empty, error with
  SyncError::NothingToDo.
2024-05-28 16:34:24 -04:00
21b4fa6c32
Handle Symbolic containers properly 2024-05-27 18:12:06 -04:00
2dd3f1dbf1
Include symlinked root directories in enumeration 2024-05-27 16:33:32 -04:00
45d9376ab0
Release 0.8.2 2024-05-21 19:04:37 -04:00
1f6e04c4ff
Update Cargo.lock 2024-05-21 19:01:58 -04:00
d2c71a230e
Revision to 1385021b0f 2024-05-14 23:31:34 -04:00
e8403c600d
Bug fix for kill_processes function with minor refactoring
- Continue loop in kill_processes and warn instead of returning error
- Removed redundant colon in warn message
- Removed vestigial lifetime expanssion from qualify_process function
2024-05-13 18:16:26 -04:00
1385021b0f
Fixed error condition handling in edit function with some minor refactoring
- A bug wherein the lock doesn't get removed when an error occurs (e.g.
  file not found) has been fixed.
2024-05-09 20:52:14 -04:00
c86d24c5a8
Cleaned up directory-acquisition functions and tidyed up agent
- Added expect call in procfs() in the ever unlikely scenario the Linux
  kernel fails to return a UTF-8 string. If this were to happen, it'd
  mean something had gone horribly wrong; either a bug in the kernel, or
  memory corruption as a result of faulty hardware.
- Reference version data from constants in agent.rs
2024-05-09 20:48:06 -04:00
622be0a7e6
Attribution update in dist 2024-05-09 20:40:19 -04:00
6168fefd13
Removed lazy_static dependency from pacwrap crate 2024-05-01 21:32:44 -04:00
3fe9d41659
Some tidy up curtailing use of lazy-static variables
- lazy-static variables replaced with OnceLock where applicable with
  otherwise redundant usage removed.
- Front-end code no longer makes use of lazy-static variables
2024-05-01 21:32:13 -04:00
e1f6d0ee52
Manual update to reflect c243d528b1 2024-04-30 20:32:21 -04:00
c243d528b1
Lazy init addition to manual, HELP_ALL changed to fixed-length static array 2024-04-30 20:29:35 -04:00
0cf3701fe9
Updated Cargo.lock 2024-04-30 20:29:32 -04:00
aeadbd4aa4
Enablement of experimental lazy database initialization 2024-04-26 23:45:42 -04:00
d8a81436a1
Release 0.8.1 2024-04-24 18:00:28 -04:00
f7f603f37f
Attribution Update 2024-04-24 17:58:24 -04:00
4bfc0ccbe6
Documentation update 2024-04-23 19:20:02 -04:00
69c1b3fe53
Fixed delete lock and fixed argument in manual 2024-04-23 17:15:58 -04:00
78bbcbef79
Don't synchronize filesystem state during preview
- Prevent filesystem state synchronization when preview flag set
- Disallow container creation when preview flag set
2024-04-21 15:43:01 -04:00
03d942ad22
Bug fixes for database resolution during composition
- Container::stamp function to set new timestamp with compose_handle.
- Restructured and refactored trans_ready function.
- Fixed bug with progress ticker during an aggregate transaction when
  one or more lines are printed to std[out|err].
- Do not print containers as up-to-date upon completion of container
  composition nor creation in aggregate, nor if a container was
  composed.
- TransactionState::Skip state declared and implemented.
- Check for UpdateSchema(..) instead of Prepare for marking a container
  as updated.
2024-04-21 15:34:53 -04:00
5c3b9bdd5d
Attribution update 2024-04-19 18:41:29 -04:00
8564f2ca74
Add positional arguments in edit function 2024-04-19 18:41:27 -04:00
93a3386571 Partial reversion of 8b286a2dfc to qualify
runtime operation
2024-04-11 20:26:11 -04:00
8b286a2dfc Instance name acquisition fixed 2024-04-11 18:34:43 -04:00
6c8f7374e6 Additional documentation with refactoring and bug fix
- Documentation for desktop utils command module
- Split authorship and license sections in manual
- Cleaned up and reformatted some parameters in manual output
- Don't include symbolic containers with queue in filesystem module
- Tidy-up refactor of a few different functions across the library
2024-04-11 03:21:15 -04:00
fde67122ad Provide temporal home directory for Slice type fakeroot containers
- Since we no longer create home directories for sliced containers,
  provide a temporal home directory for fakeroot containers.
- Do not mount bash.bashrc into a Slice type fakeroot container.
2024-04-08 22:24:46 -04:00
a8f2d5865f Fixed formatting for compatibility with markdown and clearer verbiage 2024-04-06 01:07:02 -04:00
51027e2e3f Preparation for stable builds derived from git tag 2024-04-05 23:59:58 -04:00
de42ff8960 Update documentation to reflect 5e9211a530
and inclusion of dbus module docs

- Updated pacwrap.1 manpage and manual.md
- Dbus module documentation enumerating the available modules to
  configure xdg-dbus-proxy in containers
2024-04-05 23:59:50 -04:00
5e9211a530 Refactored help module and updated help manual 2024-04-05 23:33:10 -04:00
b3ec73c24d Amended security policy 2024-04-05 17:49:00 -04:00
5ed6240ffe Changed socket string to policy to better reflect what it does 2024-04-03 21:51:43 -04:00