dnf-json: support excluding packages
In our base distro definitions we exclude packages in addition to including them. Extend dnf-json to support this, so we can depsolve the base package set as well as the packages added in blueprints. Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
parent
b4bb73a195
commit
b6d9268810
5 changed files with 16 additions and 15 deletions
2
dnf-json
2
dnf-json
|
|
@ -109,7 +109,7 @@ elif command == "depsolve":
|
|||
errors = []
|
||||
|
||||
try:
|
||||
base.install_specs(arguments["package-specs"])
|
||||
base.install_specs(arguments["package-specs"], exclude=arguments.get("exclude-specs", []))
|
||||
except dnf.exceptions.MarkingErrors as e:
|
||||
exit_with_dnf_error("MarkingErrors", f"Error occurred when marking packages for installation: {e}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue