dnf-json: use dnf.Base.install_specs()

This method also accepts modules with the `@` syntax.
This commit is contained in:
Lars Karlitski 2019-11-10 09:24:29 +00:00 committed by Tom Gundersen
parent d05673afb1
commit d13e24a91e

View file

@ -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: