summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Use a list to buffer strings in _combine_logentries() and doZac Medico2007-10-191-5/+5
| | | | | | a single concatenation at the end for better efficiency. svn path=/main/trunk/; revision=8183
* Prevent _combine_logentries() from generating redundantZac Medico2007-10-191-1/+4
| | | | | | | consecutive 'TYPE: phase' lines that show in summary.log when the python-based elog functions are used. svn path=/main/trunk/; revision=8182
* Fix broken call to renamed _combine_logentries().Zac Medico2007-10-191-1/+1
| | | | svn path=/main/trunk/; revision=8181
* Don't show each character of the log message on a newZac Medico2007-10-191-0/+2
| | | | | | | | line when displaying messages that came from one of the python-based elog functions. This might not be the correct solution but it seems to work for now. svn path=/main/trunk/; revision=8180
* Bug #196427 - Don't display news notifications when in --pretend mode.Zac Medico2007-10-191-1/+1
| | | | svn path=/main/trunk/; revision=8179
* Pass the whole cpv to elog instead of just ${PF}.Zac Medico2007-10-191-1/+1
| | | | svn path=/main/trunk/; revision=8178
* The ERROR color code is currently undefined, so make eerrorZac Medico2007-10-191-1/+1
| | | | | | use BAD like the bash version does. svn path=/main/trunk/; revision=8177
* Use the python version of eerrorMarius Mauch2007-10-191-6/+3
| | | | svn path=/main/trunk/; revision=8176
* Handle EnvironmentError instead of OSError since open()Zac Medico2007-10-181-4/+8
| | | | | | | | | | actually raises IOError. Also, treat a missing SLOT file as SLOT="" since it is currently possible to install an ebuild with an undefined SLOT even though repoman generates a SLOT.missing error with such an ebuild. svn path=/main/trunk/; revision=8174
* Bug #195375 - Make dblink.treewalk() read inforoot/SLOT sinceZac Medico2007-10-181-1/+17
| | | | | | | | it differs from the expected SLOT value when when USE=multislot is enabled. A warning message will be shown if the slot differs and --quiet mode is not enabled. svn path=/main/trunk/; revision=8172
* Adjust quote usage in collision-protect eerrorZac Medico2007-10-181-3/+3
| | | | | | output. svn path=/main/trunk/; revision=8170
* Fix collision-protect so that it properly cancels theZac Medico2007-10-181-23/+27
| | | | | | preinst phase like it used to. svn path=/main/trunk/; revision=8168
* Fix the normalize_needed regex to properly match //Zac Medico2007-10-171-1/+1
| | | | | | | anywhere in the path. Also add support for detection of . or .. where appropriate. svn path=/main/trunk/; revision=8166
* Bug #196043 - Unify the ouput handling for file collisionsZac Medico2007-10-171-53/+55
| | | | | | | so that similar eerror messages are generated whether or not collision-protect is enabled. svn path=/main/trunk/; revision=8163
* Add missing "to" to fix grammer.Zac Medico2007-10-171-1/+2
| | | | svn path=/main/trunk/; revision=8161
* Bug #196043 - Update the file collision ewarn noticeZac Medico2007-10-171-9/+15
| | | | | | | | | | to try and clarify the cases when a bug should NOT be filed. Also, recommend the new `portageq owners / <filename>` command since it works properly even when paths are ambiguous due to symlinked directories. svn path=/main/trunk/; revision=8155
* 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