dnf-json: use dnf.Base.install_specs()
This method also accepts modules with the `@` syntax.
This commit is contained in:
parent
d05673afb1
commit
d13e24a91e
1 changed files with 1 additions and 2 deletions
3
dnf-json
3
dnf-json
|
|
@ -63,8 +63,7 @@ if command == "dump":
|
|||
|
||||
elif command == "depsolve":
|
||||
base = create_base(arguments.get("repos", {}))
|
||||
for pkgspec in arguments["package-specs"]:
|
||||
base.install(pkgspec)
|
||||
base.install_specs(arguments["package-specs"])
|
||||
base.resolve()
|
||||
packages = []
|
||||
for package in base.transaction.install_set:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue