[master 1/1] Support '%packages --multilib' in dnfpayload.py (#1192628)

dcantrell installerbot-noreply at redhat.com
Fri Mar 6 21:15:10 UTC 2015


From: David Cantrell <dcantrell at redhat.com>

The /etc/dnf/dnf.conf syntax is similar to yum's, but dnfpayload.py
doesn't write out a temporary configuration file.  It just creates a
configuration object and changes the values.  So do that for
multilib_policy.

Signed-off-by: David Cantrell <dcantrell at redhat.com>
---
 pyanaconda/packaging/dnfpayload.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pyanaconda/packaging/dnfpayload.py b/pyanaconda/packaging/dnfpayload.py
index 288c49e..f688680 100644
--- a/pyanaconda/packaging/dnfpayload.py
+++ b/pyanaconda/packaging/dnfpayload.py
@@ -353,6 +353,9 @@ def _configure(self):
         # transaction, disable it in RPM:
         conf.tsflags.append('nocrypto')
 
+        if self.data.packages.multiLib:
+            conf.multilib_policy = "all"
+
         # Start with an empty comps so we can go ahead and use the environment
         # and group properties. Unset reposdir to ensure dnf has nothing it can
         # check automatically


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/d516979d30ba2cae899c19f0c5f7eb23ec66c38d


More information about the anaconda-patches mailing list