Skip to content

Commit

Permalink
update the changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
ripytide committed Dec 23, 2024
1 parent e469a27 commit 0ba5985
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -161,7 +160,7 @@ dnf = [
]
flatpak = [
"metapac",
{ package = "metapac", remote = "flathub" }
{ package = "metapac", remote = "flathub", systemwide = false }
]
pipx = [
"metapac",
Expand Down
6 changes: 3 additions & 3 deletions src/backends/dnf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub struct Dnf;
#[derive(Debug, Clone, Default, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)]
pub struct DnfOptions {
pub repo: Option<String>,
pub user: bool,
pub user: Option<bool>,
}

impl Backend for Dnf {
Expand Down Expand Up @@ -61,7 +61,7 @@ impl Backend for Dnf {
(
x,
Self::Options {
user: false,
user: Some(false),
repo: None,
},
)
Expand All @@ -70,7 +70,7 @@ impl Backend for Dnf {
(
x,
Self::Options {
user: true,
user: Some(true),
repo: None,
},
)
Expand Down

0 comments on commit 0ba5985

Please sign in to comment.