From d13e24a91e1a17b0aebd42a601d9ec853a94eb00 Mon Sep 17 00:00:00 2001 From: Lars Karlitski Date: Sun, 10 Nov 2019 09:24:29 +0000 Subject: [PATCH] dnf-json: use dnf.Base.install_specs() This method also accepts modules with the `@` syntax. --- dnf-json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dnf-json b/dnf-json index d2eab7948..7e043b317 100755 --- a/dnf-json +++ b/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: