stages/dnf: allow other operations on the provided packages than 'install'

We would like to avoid 'upgrading', but let's allow it in the tools.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2019-06-18 23:53:27 +02:00
parent 31a5eed4d9
commit b38506a702

View file

@ -11,6 +11,7 @@ def main(tree, options):
repos = options["repos"]
packages = options["packages"]
releasever = options["releasever"]
operation = options["operation"]
with open("/tmp/dnf.conf", "w") as conf:
p = configparser.ConfigParser()
@ -37,7 +38,7 @@ def main(tree, options):
"--setopt", "install_weak_deps=False",
"--releasever", releasever,
"--config", "/tmp/dnf.conf",
"install"
operation
] + packages
print(" ".join(cmd), flush=True)