Skip to content

Commit fec0298

Browse files
committed
fix: Better align schema to functionality
1 parent 6573462 commit fec0298

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

modules/dnf/dnf.nu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ def group_install [install: record]: nothing -> nothing {
536536
mut args = $install | install_args
537537

538538
if $install.with-optional {
539-
$args = $args | appent '--with-optional'
539+
$args = $args | append '--with-optional'
540540
}
541541

542542
try {
@@ -795,7 +795,7 @@ def replace_pkgs [replace_list: list]: nothing -> nothing {
795795
(^dnf5
796796
-y
797797
swap
798-
...($replacement | install_args allow-erasing)
798+
...($pkg_pair | install_args --global-config $replacement allow-erasing)
799799
$pkg_pair.old
800800
$pkg_pair.new)
801801
} catch {

modules/dnf/dnf.tsp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ model Swap {
124124

125125
/** The package to replace with. */
126126
new: string;
127+
128+
/** Whether to allow erasing (removal) of packages in case of dependency problems. */
129+
`allow-erasing`?: boolean = false;
127130
}
128131

129132
model GroupInstall {
@@ -142,15 +145,15 @@ model GroupRemove {
142145
}
143146

144147
model InstallCommon {
145-
/** Whether to install weak dependencies during the RPM group install or not. */
148+
/** Whether to install weak dependencies. */
146149
`install-weak-deps`?: boolean = true;
147150

148-
/** Whether to continue with the RPM group install if there are no packages available in the repository. */
151+
/** Whether to continue with the install if there are no packages available in the repository. */
149152
`skip-unavailable`?: boolean = false;
150153

151-
/** Whether to continue with the RPM group install if there are broken packages. */
154+
/** Whether to continue with the install if there are broken packages. */
152155
`skip-broken`?: boolean = false;
153156

154-
/** Whether to allow erasing (removal) of packages in case of dependency problems during the RPM group install. */
157+
/** Whether to allow erasing (removal) of packages in case of dependency problems. */
155158
`allow-erasing`?: boolean = false;
156159
}

0 commit comments

Comments
 (0)