dnf-json: fix depsolve command

When argument passing was switched from command line to stdin in cae1fdd,
depsolve command was broken. This commit fixes it.
This commit is contained in:
Ondřej Budai 2019-11-08 10:27:43 +01:00
parent b33ed9e5d2
commit 4d4da93240

View file

@ -63,7 +63,7 @@ if command == "dump":
elif command == "depsolve":
base = create_base(arguments.get("repos", {}))
for pkgspec in arguments:
for pkgspec in arguments["package-specs"]:
base.install(pkgspec)
base.resolve()
packages = []