summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Optimize dblink.isowner() to use fewer stat calls byZac Medico2007-10-171-15/+38
| | | | | | | | | | only collecting stat results for parent directories. This provides equivalent accuracy to the previous approach but will perform much better when used to scan all installed packages for owners in the event of a file collision. svn path=/main/trunk/; revision=8153
* Only re.compile() the normalize_needed pattern onceZac Medico2007-10-161-2/+4
| | | | | | rather than for each dblink constructor call. svn path=/main/trunk/; revision=8152
* In dblink.getcontents(), use a regular expression to detectZac Medico2007-10-161-2/+12
| | | | | | | | | | | when path normalization is required. Also, only join with ${ROOT} when necessary. This allows unnecessary normpath and join calls to be optimized away in the general case, reducing the cpu time for `equery belongs <filename>` by about 50%. M pym/portage/dbapi/vartree.py svn path=/main/trunk/; revision=8151
* Use EmergeConfig instead of portage.config in RootConfigMarius Mauch2007-10-161-17/+12
| | | | svn path=/main/trunk/; revision=8150
* Move clean_world() into WorldSetMarius Mauch2007-10-162-35/+33
| | | | svn path=/main/trunk/; revision=8149
* use skipfile rather than timestamp to ignore processed filesMarius Mauch2007-10-161-36/+25
| | | | svn path=/main/trunk/; revision=8148
* Also use EmergeConfig() in MergeTaskMarius Mauch2007-10-161-15/+16
| | | | svn path=/main/trunk/; revision=8147
* fix typoMarius Mauch2007-10-161-1/+1
| | | | svn path=/main/trunk/; revision=8146
* Replace getlist() with PackageSet.getAtoms()Marius Mauch2007-10-161-33/+2
| | | | svn path=/main/trunk/; revision=8145
* subclass portage.config to include a setconfig instance to avoid adding one ↵Marius Mauch2007-10-162-26/+40
| | | | | | more parameter to most of the emerge functions svn path=/main/trunk/; revision=8144
* Add debug mode to display the libraries that cause the package to be includedMarius Mauch2007-10-161-2/+11
| | | | svn path=/main/trunk/; revision=8143
* Move the emerge module to _emerge to make it privateZac Medico2007-10-162-3/+3
| | | | | | | since it's mostly unsuitable for api consumers at this time. svn path=/main/trunk/; revision=8142
* remove unused tmpfs variableMarius Mauch2007-10-151-8/+0
| | | | svn path=/main/trunk/; revision=8128
* Add a note to clarify os.walk() behavior with respectZac Medico2007-10-141-0/+3
| | | | | | to symlinks to directories. svn path=/main/trunk/; revision=8124
* Remove the checks for files in symlinked directoriesZac Medico2007-10-141-13/+2
| | | | | | | | | from the collision protect code since it hasn't been needed ever since the followSymlinks parameter was disabled for portage.listdir() calls in order to prevent infinite recursion loops. svn path=/main/trunk/; revision=8121
* In some cases, openpty can be slow when it fails. Therefore,Zac Medico2007-10-131-7/+16
| | | | | | stop trying to use it after the first failure. svn path=/main/trunk/; revision=8119
* Remove unused import.Zac Medico2007-10-131-1/+0
| | | | svn path=/main/trunk/; revision=8115
* In the file collision eerror output, don't colorize theZac Medico2007-10-131-2/+2
| | | | | | file paths since the escape codes look ugly in the log. svn path=/main/trunk/; revision=8114
* Handle the PortageException that can be raised fromZac Medico2007-10-131-1/+6
| | | | | | portage.mail.send_mail(). svn path=/main/trunk/; revision=8102
* Make the file collision eerror message less verboseZac Medico2007-10-131-9/+11
| | | | | | when in --quiet mode. svn path=/main/trunk/; revision=8100
* Remove a chdir() call that's no longer needed for theZac Medico2007-10-131-10/+0
| | | | | | collision-protect symlink code. svn path=/main/trunk/; revision=8098
* Use os.listdir() instead of portage.listdir() in dblink.mergeme().Zac Medico2007-10-131-1/+1
| | | | svn path=/main/trunk/; revision=8097
* In dblink.treewalk(), use os.walk() instead of portage.listdir()Zac Medico2007-10-131-13/+15
| | | | | | | in order to avoid cacheddir() bloat when listing the files to be merged from ${D}. svn path=/main/trunk/; revision=8096
* Bug #195370 - Filter some more bogus matches due toZac Medico2007-10-121-1/+5
| | | | | | old-style virtuals. svn path=/main/trunk/; revision=8093
* Remove a redundant call to elog_process().Zac Medico2007-10-121-2/+0
| | | | svn path=/main/trunk/; revision=8091
* s:this package wants:this package will:Zac Medico2007-10-121-1/+1
| | | | svn path=/main/trunk/; revision=8089
* Bug #195527 - Add some more information to the file collisionZac Medico2007-10-121-4/+10
| | | | | | | | | | | | eerror message to try and prevent user confusion: - Hint that `equery belongs <filename>` can be used to find the installed package that owns a file. - Advise then NOT to file a bug without reporting exactly which two packages install the same file(s). svn path=/main/trunk/; revision=8087
* Bug #195527 - Unconditionally detect file collisions and logZac Medico2007-10-121-10/+43
| | | | | | | | them as eerror messages via elog. This will allow us to collect more file collision data but it won't be quite as annoying as enabling collision-protect by default would be. svn path=/main/trunk/; revision=8086
* Use writemsg() to send exception string to stderr.Zac Medico2007-10-121-1/+2
| | | | svn path=/main/trunk/; revision=8058
* Pass into the PackageIndex constructor a list of packageZac Medico2007-10-122-19/+24
| | | | | | metadata keys that inherit a default value from the header. svn path=/main/trunk/; revision=8055
* Pass default package metadata values into the PackageIndexZac Medico2007-10-122-16/+28
| | | | | | constructor for optional things like EAPI and SLOT. svn path=/main/trunk/; revision=8054
* Sync code between binarytree.inject() and populate().Zac Medico2007-10-121-15/+20
| | | | svn path=/main/trunk/; revision=8053
* Split USE evaluation code out of binarytree.inject() soZac Medico2007-10-112-34/+29
| | | | | | that it can be reused in populate(). svn path=/main/trunk/; revision=8052
* Strip the leading path separator from USER_CONFIG_PATHZac Medico2007-10-111-1/+2
| | | | | | so that os.path.join works correctly. svn path=/main/trunk/; revision=8051
* In depgraph.select_dep(), check for existing nodes inZac Medico2007-10-111-1/+2
| | | | | | installed packages when necessary. svn path=/main/trunk/; revision=8050
* typo fixMarius Mauch2007-10-111-1/+1
| | | | svn path=/main/trunk/; revision=8049
* Do not use aux_get to parse the NEEDED file as we need to distinguish spaces ↵Marius Mauch2007-10-111-2/+2
| | | | | | and newlines svn path=/main/trunk/; revision=8048
* Add a set to group all consumers of missing libraries as a simple ↵Marius Mauch2007-10-112-13/+45
| | | | | | revdep-rebuild replacement svn path=/main/trunk/; revision=8046
* Make depgraph.select_dep() reject installed packagesZac Medico2007-10-111-1/+5
| | | | | | | | in the same cases that it used to so that a warning message is properly generated in depgraph.xcreate() when a package is unavailable but installed. svn path=/main/trunk/; revision=8045
* implement new set to group all consumers of preserved librariesMarius Mauch2007-10-112-4/+40
| | | | svn path=/main/trunk/; revision=8044
* Raise a PackageNotFound exception instead of a ValueErrorZac Medico2007-10-111-2/+2
| | | | | | | in order to avoid ambiguity if an unexpected ValueError occurs. svn path=/main/trunk/; revision=8043
* Move some package selection code from depgraph.create()Zac Medico2007-10-111-53/+53
| | | | | | | to select_dep() so that all package selection is done in the same place. svn path=/main/trunk/; revision=8042
* Make portdbapi and bindbapi cache PROVIDE in orderZac Medico2007-10-113-2/+6
| | | | | | to optimize matching of old-style virtuals. svn path=/main/trunk/; revision=8041
* Prevent bogus upgrade display when a new-style virtualZac Medico2007-10-101-4/+9
| | | | | | is first installed and it replaces an old-style virtual. svn path=/main/trunk/; revision=8039
* Comment about avoiding expensive metadata pullsZac Medico2007-10-101-0/+6
| | | | | | in depgraph.select_dep(). svn path=/main/trunk/; revision=8038
* Refactor depgraph.select_dep() to eliminate redundantZac Medico2007-10-101-151/+96
| | | | | | code that was duplicated for each package type. svn path=/main/trunk/; revision=8037
* Cache IUSE in bindbapi to optimize --newuse calculations.Zac Medico2007-10-102-1/+11
| | | | | | | Also, fix filtering code for reading/writing USE and IUSE from/to the metadata index. svn path=/main/trunk/; revision=8036
* Migrate depgraph.select_files() to use the filtered repoZac Medico2007-10-101-52/+38
| | | | | | | for expansion of greedy atoms. Also, use the list of repos to clean up the category expansion code. svn path=/main/trunk/; revision=8035
* Initialize the list of package repos inside theZac Medico2007-10-101-17/+16
| | | | | | depgraph constructor so it's always available. svn path=/main/trunk/; revision=8034
* Unify the masking reasons output so that the same codeZac Medico2007-10-092-108/+110
| | | | | | path is used for both ebuilds and binary packages. svn path=/main/trunk/; revision=8033