Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 390424 Details for
Bug 527996
sys-apps/portage: emerge --info should show /bin/sh provider
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
first-owner.py: benchmark time taken to locate an owner of a file
first-owner.py (text/x-python), 603 bytes, created by
Zac Medico
on 2014-11-27 21:36:21 UTC
(
hide
)
Description:
first-owner.py: benchmark time taken to locate an owner of a file
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2014-11-27 21:36:21 UTC
Size:
603 bytes
patch
obsolete
>#!/usr/bin/python > >import os >import sys > >import portage >from portage.util import writemsg, writemsg_stdout > >def main(args): > vardb = portage.db[portage.root]["vartree"].dbapi > > relative_paths = [] > for p in sys.argv[1:]: > if not p.startswith(portage.root): > writemsg("!!! Path does not start with EROOT: %s\n" % > portage.root, noiselevel=-1) > return 2 > relative_paths.append(p[len(portage.root)-1:]) > > for db, relative_path in vardb._owners.iter_owners(relative_paths): > writemsg_stdout("%s\n" % db.mycpv) > return os.EX_OK > > return 1 > >if __name__ == "__main__": > sys.exit(main(sys.argv[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 Raw
Actions:
View
Attachments on
bug 527996
: 390424