* [pyro][PATCH] package_manager: Fix support for NO_RECOMMENDATONS
@ 2017-08-07 6:21 Richard Röjfors
2017-08-07 6:31 ` ✗ patchtest: failure for package_manager: Fix support for NO_RECOMMENDATONS (rev3) Patchwork
2017-08-16 5:18 ` [pyro][PATCH] package_manager: Fix support for NO_RECOMMENDATONS akuster808
0 siblings, 2 replies; 3+ messages in thread
From: Richard Röjfors @ 2017-08-07 6:21 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>
---
meta/lib/oe/package_manager.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 93d079d73d..28c6b2aec2 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)
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* ✗ patchtest: failure for package_manager: Fix support for NO_RECOMMENDATONS (rev3)
2017-08-07 6:21 [pyro][PATCH] package_manager: Fix support for NO_RECOMMENDATONS Richard Röjfors
@ 2017-08-07 6:31 ` Patchwork
2017-08-16 5:18 ` [pyro][PATCH] package_manager: Fix support for NO_RECOMMENDATONS akuster808
1 sibling, 0 replies; 3+ messages in thread
From: Patchwork @ 2017-08-07 6:31 UTC (permalink / raw)
To: Richard Röjfors; +Cc: openembedded-core
== Series Details ==
Series: package_manager: Fix support for NO_RECOMMENDATONS (rev3)
Revision: 3
URL : https://patchwork.openembedded.org/series/8021/
State : failure
== Summary ==
Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:
* Issue Series cannot be parsed correctly due to malformed diff lines [test_mbox_format]
Suggested fix Create the series again using git-format-patch and ensure it can be applied using git am
Diff line
If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).
---
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [pyro][PATCH] package_manager: Fix support for NO_RECOMMENDATONS
2017-08-07 6:21 [pyro][PATCH] package_manager: Fix support for NO_RECOMMENDATONS Richard Röjfors
2017-08-07 6:31 ` ✗ patchtest: failure for package_manager: Fix support for NO_RECOMMENDATONS (rev3) Patchwork
@ 2017-08-16 5:18 ` akuster808
1 sibling, 0 replies; 3+ messages in thread
From: akuster808 @ 2017-08-16 5:18 UTC (permalink / raw)
To: Richard Röjfors, openembedded-core
On 08/06/2017 11:21 PM, Richard Röjfors wrote:
> 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.
merged to stagging.
Thanks,
Armin
>
> Signed-off-by: Richard Röjfors <richard@puffinpack.se>
> ---
> meta/lib/oe/package_manager.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
> index 93d079d73d..28c6b2aec2 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)
> --
> 2.11.0
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-08-16 5:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-07 6:21 [pyro][PATCH] package_manager: Fix support for NO_RECOMMENDATONS Richard Röjfors
2017-08-07 6:31 ` ✗ patchtest: failure for package_manager: Fix support for NO_RECOMMENDATONS (rev3) Patchwork
2017-08-16 5:18 ` [pyro][PATCH] package_manager: Fix support for NO_RECOMMENDATONS akuster808
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox