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:
parent
31a5eed4d9
commit
b38506a702
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue