diff --git a/CHANGELOG.md b/CHANGELOG.md index bc40ad7..145e2d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 Allows you to clear the caches for all or selective backends. `metapac clean-cache arch apt` to clean just the `arch` and `apt` backends and just `metapac clear-cache` to clear all backends. +- A new per-package `systemwide` setting for `flatpak` packages. (#62) + +### Fixed + +- The `flatpak` backend no longer mistakenly uses `sudo` when removing packages. (#57) + +### Changed + +- The `flatpak_systemwide` has been renamed to + `flatpak_default_systemwide` to allow for a new `systemwide` + per-package setting for `flatpak` packages (#62) + +### Removed + +- The `optional_deps` options on `arch` packages has been removed + since it not a feature of the `arch` backend package managers and + was handled by `metapac`, in the interest of simplicity this odd bit + of logic has been removed (this also it makes the + code nicer). Instead if you have multiple packages + which you want installed only if another package is installed + consider using a comment and whitespace to separate them + visually in your group files so that it is obvious when reading or + modififying them that they are linked. You could even separate the + packages out into another group file and include or uninclude the + entire group via symlinking or the `hostname_groups` config feature. (#62) ## [0.2.5] - 2024-11-24 diff --git a/README.md b/README.md index 64cf501..60d0fed 100644 --- a/README.md +++ b/README.md @@ -138,8 +138,7 @@ server = ["example_group"] arch = [ "metapac", - # optional_deps: additional packages to install with this package, short-form syntax only - { package = "metapac", optional_deps = ["git"] } + { package = "metapac" } ] apt = [ "metapac", @@ -161,7 +160,7 @@ dnf = [ ] flatpak = [ "metapac", - { package = "metapac", remote = "flathub" } + { package = "metapac", remote = "flathub", systemwide = false } ] pipx = [ "metapac", diff --git a/src/backends/dnf.rs b/src/backends/dnf.rs index 3744a7b..eb595f5 100644 --- a/src/backends/dnf.rs +++ b/src/backends/dnf.rs @@ -12,7 +12,7 @@ pub struct Dnf; #[derive(Debug, Clone, Default, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)] pub struct DnfOptions { pub repo: Option, - pub user: bool, + pub user: Option, } impl Backend for Dnf { @@ -61,7 +61,7 @@ impl Backend for Dnf { ( x, Self::Options { - user: false, + user: Some(false), repo: None, }, ) @@ -70,7 +70,7 @@ impl Backend for Dnf { ( x, Self::Options { - user: true, + user: Some(true), repo: None, }, )