Skip to content
Snippets Groups Projects
Commit e5f1d35a authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Propagate --exclude to 'dnf install'

parent c9bae5d8
No related branches found
No related tags found
No related merge requests found
......@@ -98,14 +98,14 @@ def run(path, rpm, exclude):
# need to be updated before the install, or we might get
# a conflict.
exclude_arg = [ "-x %s" % s for s in exclude ]
update = "%s -c %s -e %s -d %s -y update %s" % (
update = "%s -c %s -e %s -d %s -y %s update" % (
CMD, f.name, verb, verb, " ".join(exclude_arg))
mio.log.log(NORMAL, update)
result = mio.daemon_cage.system(update)
# Install new packages
install = "%s -c %s -e %s -d %s -y install" % (
CMD, f.name, verb, verb)
install = "%s -c %s -e %s -d %s -y %s install" % (
CMD, f.name, verb, verb, " ".join(exclude_arg))
i = 0
for p in rpm:
i += 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment