Commit graph

118 commits

Author SHA1 Message Date
e8acbc5ea8
Require 1 instead of boolean for PACWRAP_SCHEMA_BUILT
All checks were successful
Build / Check format (push) Successful in 49s
Build / Lint pacwrap (push) Successful in 1m19s
Build / Build pacwrap (push) Successful in 1m32s
2024-11-05 18:20:27 -05:00
660ab2b910
Separate lint job
- Separate Build and Lint jobs for better clarity
- Fixed PACWRAP_SCHEMA_BUILT envvar check in pacwrap build script
2024-11-02 02:22:42 -04:00
80c6042c3b
Tidy up manifests and inclusion of workspace dependencies
All checks were successful
Build / Check format (push) Successful in 48s
Build / Build pacwrap (push) Successful in 1m40s
- `alpm` and `pacwrap-core` defined as workspace dependencies being
  imported by each crate.
- Set workspace resolver version to `2`
2024-10-31 16:22:08 -04:00
58084985cf
Pre-release 0.8.7
All checks were successful
Build / Check format (push) Successful in 50s
Build / Build pacwrap (push) Successful in 1m41s
Note: This is a test release intended to ensure nothing breaks when the
associated crates are published to crates.io.

- Update to version '0.8.7-pre'.
- Testing new `Cargo.toml` workspace manifest, of which brings manifest
  keys in all three pacwrap crates together. Most package keys now, with
  the exception of crate-specific metadata, are now located in the
  workspace manifest.
- Update common.sh to accomodate this change.
- Update README.md to again use relative paths.
2024-10-30 23:24:48 -04:00
acbe177b60
Release 0.8.6 2024-09-26 16:38:38 -04:00
828da40579
Proper Result and error structure for input prompts 2024-09-25 20:18:06 -04:00
8191764098
Increased log coverage and refactored error module
- Error logging is now present in pacwrap-agent
- Agent error code handling now correctly traps runtime panics.
- impl of DisplayTrait for TransactionError no longer handles the
  display of transaction failure messages.
- Error handling for TransactionAggregation is split into three
  categories: Fatal, Error, and Non-Fatal Error. While two former are
  immediately trapped and the program is terminated, the latter can
  safely terminate the program without consequence.
2024-09-23 19:59:36 -04:00
2f45f12b3e
Fix invocation of xdg-dbus-proxy to include --filter arg
- This option was ommitted by mistake during some refactoring work and
  now the `exec` module in pacwrap has been revised to include this
  option.
- AppIndicator module has had the talk option re-added.
- Specifiying the `-v` option twice will invoke `--log` on
  xdg-dbus-proxy for easy debugging.
2024-09-23 18:45:41 -04:00
07d3963196
Update to alpm.rs 4.0.1 with partial reversion of b621c34
- Updated to alpm.rs 4.0.1
- Changes made with b621c34 were made as a result of a regression,
  introduced with alpm.rs 3.0.x, of which has now been fixed upstream.
  They've now since been reverted.
2024-09-21 00:03:52 -04:00
d1622eb0b4
Revised error handling and some cleanup
- `fatal()` function for handling the termination of the program when a
  fatal human-readable error digestable error occurs. This function
  terminates the program and will never return a value.
- Much like the aforementioned function, the `error()` function now
  prints the error and terminates the program, instead of printing the
  error and returning the error code as an i32 integer.
- ErrorType enum implemented as an encapsulate to delineate error type.
- Display trait implemented for ErrorType enum for use cases whereby
  the program being terminated is inconvenient for the given code path.
- `generic()` function added to GenericError trait for handling errors
  of which do not require a message to be prepended.
- Global configuration is now statically cached with OnceLock instead of
  lazy_static, and is loaded on-demand instead of during the invocation
  of the `init()` function from the init module upon program startup.
- Use of lazy_static was also eliminated in pacwrap-core's sync module.
2024-09-19 23:19:26 -04:00
e25d807bd7
Debug logging for transaction state and all clippy warnings fixed 2024-09-17 18:52:43 -04:00
7234f89202
Release 0.8.5 2024-09-14 21:15:59 -04:00
e4b8a85ccd
--disable-sandbox for disabling libalpm sandbox
- Ability to instruct libalpm to disable its own sandboxing mechanism by
  engaging `--disable-sandbox` at the command line.
- Updated manuals to reflect new command-line options.
- Disable sandbox user when disabling libalpm's sandbox
2024-09-14 21:11:46 -04:00
2819f5d216
--debug to trigger logging verbosity
- Logging verbosity triggered by `--debug` command-line option.
- Implemented callback function for libalpm's logging callback.
- Increased TransactionFlags to 16 bits from 8 bits to accomodate the
  bitlength required for additional transaction flags.
2024-09-11 22:20:55 -04:00
caa9d05041
Deduplicate pacwrap/README.md, symlinking to ../README.md 2024-09-09 23:05:00 -04:00
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
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
e988b90c11
Release 0.8.4 2024-06-14 17:31:52 -04:00
ae8c37e951
Addition of Process mtime function and expect calls 2024-06-11 20:51:32 -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
21b4fa6c32
Handle Symbolic containers properly 2024-05-27 18:12:06 -04:00
45d9376ab0
Release 0.8.2 2024-05-21 19:04:37 -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
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
c243d528b1
Lazy init addition to manual, HELP_ALL changed to fixed-length static array 2024-04-30 20:29:35 -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
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
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
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
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
5e9211a530 Refactored help module and updated help manual 2024-04-05 23:33:10 -04:00
4494509394 Reformat badges in README.md 2024-04-03 17:15:23 -04:00
a9959634ef Remove lock file regardless of result in delete module 2024-04-02 16:59:37 -04:00
1e4e64b5ab Array bounds check and allow target-only sync operations
- Allow synchronization to occur for target-only operations
- Check array bounds in remove module for container deletion shortcut
- Remove redundant builder call to progress function in remove module
2024-04-02 16:51:02 -04:00
4a0e9cd3f9 Release 0.8.0 2024-03-30 22:59:39 -04:00
d179b96495 Final touchups to README.md and formatting fix in manual module 2024-03-30 22:45:00 -04:00
70f024918c Fixed logo param and crate version for license shields.io embeds 2024-03-30 22:05:07 -04:00