diff --git a/src/pylorax/api/dnfbase.py b/src/pylorax/api/dnfbase.py index bde82985..2a992aa4 100644 --- a/src/pylorax/api/dnfbase.py +++ b/src/pylorax/api/dnfbase.py @@ -93,7 +93,10 @@ def get_base_object(conf): dbc.reposdir = [repodir] dbc.install_weak_deps = False dbc.prepend_installroot('persistdir') - dbc.tsflags.append('nodocs') + # this is a weird 'AppendOption' thing that, when you set it, + # actually appends. Doing this adds 'nodocs' to the existing list + # of values, over in libdnf, it does not replace the existing values. + dbc.tsflags = ['nodocs'] if conf.get_default("dnf", "proxy", None): dbc.proxy = conf.get("dnf", "proxy") diff --git a/src/sbin/lorax b/src/sbin/lorax index 30b9cadc..2729757d 100755 --- a/src/sbin/lorax +++ b/src/sbin/lorax @@ -212,7 +212,10 @@ def get_dnf_base_object(installroot, sources, mirrorlists=None, repos=None, conf.releasever = releasever conf.installroot = installroot conf.prepend_installroot('persistdir') - conf.tsflags.append('nodocs') + # this is a weird 'AppendOption' thing that, when you set it, + # actually appends. Doing this adds 'nodocs' to the existing list + # of values, over in libdnf, it does not replace the existing values. + conf.tsflags = ['nodocs'] if proxy: conf.proxy = proxy