Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] package_manager: Fix support for NO_RECOMMENDATONS
@ 2017-07-30  8:39 Richard Röjfors
  2017-07-30  9:01 ` ✗ patchtest: failure for " Patchwork
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Röjfors @ 2017-07-30  8:39 UTC (permalink / raw)
  To: openembedded-core

When support for dnf was introduced the check of the
no NO_RECOMMENDATIONS variable got broken.
    
This fixes the issue by compairing to the string "1"
rather than the number 1.
    
Signed-off-by: Richard Röjfors <richard@puffinpack.se>
---
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 72503eb9d3..518cf8dbe3 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -585,7 +585,7 @@ class RpmPM(PackageManager):
 
         output = self._invoke_dnf((["--skip-broken"] if attempt_only else []) +
                          (["-x", ",".join(exclude_pkgs)] if len(exclude_pkgs) > 0 else []) +
-                         (["--setopt=install_weak_deps=False"] if self.d.getVar('NO_RECOMMENDATIONS') == 1 else []) +
+                         (["--setopt=install_weak_deps=False"] if self.d.getVar('NO_RECOMMENDATIONS') == "1" else []) +
                          (["--nogpgcheck"] if self.d.getVar('RPM_SIGN_PACKAGES') != '1' else ["--setopt=gpgcheck=True"]) +
                          ["install"] +
                          pkgs)


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-30  9:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-30  8:39 [PATCH] package_manager: Fix support for NO_RECOMMENDATONS Richard Röjfors
2017-07-30  9:01 ` ✗ patchtest: failure for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox