Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 449500 - python-r1.eclass - needs a function to retrieve a list of enabled python targets
Summary: python-r1.eclass - needs a function to retrieve a list of enabled python targets
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-31 18:41 UTC by Matthew Schultz
Modified: 2013-01-01 17:24 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
python-r1.eclass.patch (python-r1.eclass.patch,595 bytes, patch)
2012-12-31 18:44 UTC, Matthew Schultz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Schultz 2012-12-31 18:41:29 UTC
I need a enable use target function in the python-r1 eclass for an ebuild I'm working on which may also be useful for other ebuilds.  While the python_foreach_impl is useful for certain situations, I need more control over the loop than it provides.  I will attach a patch.

Reproducible: Always
Comment 1 Matthew Schultz 2012-12-31 18:44:37 UTC
Created attachment 333882 [details, diff]
python-r1.eclass.patch

Patch to add get use implementation function.
Comment 2 Matthew Schultz 2012-12-31 18:46:03 UTC
Also note that ruby-ng eclass has a similar function as well which I also use in an ebuild (bug 373227).
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-01-01 10:30:30 UTC
(In reply to comment #1)
> Created attachment 333882 [details, diff] [details, diff]
> python-r1.eclass.patch
> 
> Patch to add get use implementation function.

I don't get what this gives you. What is wrong with putting the conditional into the function you're calling?
Comment 4 Matthew Schultz 2013-01-01 17:24:35 UTC
As it turns out, I was able to use python_foreach_impl after all.