Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 285377 Details for
Bug 381601
app-portage/smart-live-rebuild-1.2: calls emerge even when no updates found
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0001-Fix-Bug-381601-python-3-incompatibility.patch
0001-Fix-Bug-381601-python-3-incompatibility.patch (text/plain), 912 bytes, created by
Paul Varner (RETIRED)
on 2011-09-02 19:39:43 UTC
(
hide
)
Description:
0001-Fix-Bug-381601-python-3-incompatibility.patch
Filename:
MIME Type:
Creator:
Paul Varner (RETIRED)
Created:
2011-09-02 19:39:43 UTC
Size:
912 bytes
patch
obsolete
>From 29f45d981d9bfa78d386f28c3db10f738514b4b5 Mon Sep 17 00:00:00 2001 >From: Paul Varner <fuzzyray@gentoo.org> >Date: Fri, 2 Sep 2011 14:31:30 -0500 >Subject: [PATCH] Fix Bug 381601 python 3 incompatibility. > >filter() in python 3 now returns and Iterator which evalutes to True even >when the list being iterated is empty. The fix is to use a list >comprehension instead of the filter when check boolean status. >--- > smartliverebuild/cli.py | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/smartliverebuild/cli.py b/smartliverebuild/cli.py >index 4fe066d..5d390f5 100644 >--- a/smartliverebuild/cli.py >+++ b/smartliverebuild/cli.py >@@ -139,7 +139,7 @@ def main(argv): > except SLRFailure: > return 1 > >- if not packages and not filter(lambda a: not a.startswith('-'), args): >+ if not packages and not [a for a in args if not a.startswith('-')]: > return 0 > > if opts.pretend: >-- >1.7.6.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 381601
: 285377