| Summary: | Alternative to app-admin/python-updater | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | michael <michael> |
| Component: | [OLD] Development | Assignee: | Python Gentoo Team <python> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | enhancement | CC: | ainsaar, dev-portage, ferringb, pacho |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | python-updater.py | ||
|
Description
michael@smith-li.com
2008-11-28 16:44:04 UTC
Created attachment 173657 [details]
python-updater.py
It seems like your script is based on searching for file owners, and newer versions of portage (>=portage-2.1.5.x) have a contents index which can be used to optimize searches like this. For example, it's possible to run `emerge /lib/modules` as a substitute for module-rebuild, and in portage-2.2 the default sets.conf includes a @module-rebuild set. The contents index is also accessible via a portageq command, so a command like `portageq owners / /usr/lib/python2.4/site-packages` could be used by a script locate all of packages that install files there. Portage has moved on too far to match this script. |