Summary: | app-portage/smart-live-rebuild-1.2: calls emerge even when no updates found | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Paul Varner (RETIRED) <fuzzyray> |
Component: | Current packages | Assignee: | Michał Górny <mgorny> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | 0001-Fix-Bug-381601-python-3-incompatibility.patch |
Description
Paul Varner (RETIRED)
2011-09-02 18:49:39 UTC
It's a python 3.2 issue, i.e it works with 2.6, 2.7, and 3.1. Apparently "not filter(lambda a: not a.startswith('-'), args)))" in cli.py is always evaluating to False with python 3.2 I lied about it working in python 3.1. I forgot to switch python from 2.7 to 3.1 when testing. So it is a python 3 issue. Created attachment 285377 [details, diff]
0001-Fix-Bug-381601-python-3-incompatibility.patch
Patch to fix the problem.
Yeah, indeed iterator in Python3 doesn't support bool(). [master b3c8572] Fix lack of bool() for filter() in Python3. 1 files changed, 1 insertions(+), 1 deletions(-) Please try now.https://bugs.gentoo.org/show_bug.cgi?id=381601# Both fixes work, but I think I like yours better since the list doesn't have to be fully created to test it. |