File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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
129132model GroupInstall {
@@ -142,15 +145,15 @@ model GroupRemove {
142145}
143146
144147model 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}
You can’t perform that action at this time.
0 commit comments