Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 216743 Details for
Bug 301251
linux-mod.eclass: Tinderboxing request: linux-mod binpkg without-kernel-sources install support QA
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
dirty script to retrieve list of cpvs using linux-mod.eclass
test_binpkg_eclasses.py (text/plain), 1.16 KB, created by
Fabio Erculiani (RETIRED)
on 2010-01-17 17:00:53 UTC
(
hide
)
Description:
dirty script to retrieve list of cpvs using linux-mod.eclass
Filename:
MIME Type:
Creator:
Fabio Erculiani (RETIRED)
Created:
2010-01-17 17:00:53 UTC
Size:
1.16 KB
patch
obsolete
># -*- coding: utf-8 -*- >import portage > >ECLASS_TARGET = "linux-mod" > >def _get_all_cpvs(): > """ > Return a list of all the available CPVs in porttree. > """ > return portage.portdb.cpv_all() > >def _is_cpv_using_eclass(cpv, eclass): > """ > Determine whether given cpv uses provided eclass. > """ > try: > inherited = portage.portdb.aux_get(cpv, ["INHERITED"])[0] > except KeyError: > # deal with "live" PORTDIR > return False > return eclass in inherited.split() > >def _get_all_cpv_using_eclass(all_cpvs): > """ > Filter out cpvs not using ECLASS_TARGET eclass > """ > resulting_cpvs = [] > for cpv in all_cpvs: > if _is_cpv_using_eclass(cpv, ECLASS_TARGET): > #print("CPV %s is using %s" % (cpv, ECLASS_TARGET,)) > resulting_cpvs.append(cpv) > return resulting_cpvs > >if __name__ == "__main__": > > #print("Getting a list of all the available cpvs...") > all_cpvs = _get_all_cpvs() > #print("%s: %s" % ("Available cpvs", len(all_cpvs),)) > filtered_cpvs = _get_all_cpv_using_eclass(all_cpvs) > #print("%s: %s" % ("Filtered cpvs", len(filtered_cpvs),)) > for cpv in filtered_cpvs: > print(cpv)
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 Raw
Actions:
View
Attachments on
bug 301251
:
216742
| 216743