summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused import.v2.2_rc37Zac Medico2009-08-091-1/+0
| | | | svn path=/main/trunk/; revision=13966
* Make everything safe for unicode (this should fix the elog modules thatZac Medico2009-08-091-1/+28
| | | | | | send mail). svn path=/main/trunk/; revision=13965
* Fix EOutput to safely write unicode to stderr/stdout. Thanks to Arfrever forZac Medico2009-08-091-14/+17
| | | | | | reporting. svn path=/main/trunk/; revision=13964
* Encode unicode messages as bytes in order to avoid TypeError fromZac Medico2009-08-091-6/+14
| | | | | | syslog.syslog() with python-2.x. svn path=/main/trunk/; revision=13962
* Write log files in text mode (unicode). Thanks to Arfrever for reporting.Zac Medico2009-08-092-2/+6
| | | | svn path=/main/trunk/; revision=13961
* Always use encoding='utf_8' for unicode() calls.Zac Medico2009-08-094-5/+7
| | | | svn path=/main/trunk/; revision=13960
* Inside collect_ebuild_messages(), open elog files in text mode (unicode).Zac Medico2009-08-091-1/+3
| | | | | | Thanks to jlec for reporting. svn path=/main/trunk/; revision=13958
* Convert scanelf output to unicode inside LinkageMap.rebuild().Zac Medico2009-08-081-0/+2
| | | | svn path=/main/trunk/; revision=13957
* Use writemsg_stdout() for safe display of unicode overlay paths.Zac Medico2009-08-081-1/+1
| | | | svn path=/main/trunk/; revision=13956
* Use writemsg_stdout() for safe unicode output.Zac Medico2009-08-081-8/+18
| | | | svn path=/main/trunk/; revision=13955
* Add missing noiselevel argument in writemsg_stdout() calls.Zac Medico2009-08-081-3/+5
| | | | svn path=/main/trunk/; revision=13954
* In Task.__str__(), emulate tuple.__str__, but don't show 'foo' as u'foo' forZac Medico2009-08-081-2/+5
| | | | | | unicode strings. svn path=/main/trunk/; revision=13950
* Account for hardlinks when computing SIZE metadata.Zac Medico2009-08-081-1/+4
| | | | svn path=/main/trunk/; revision=13949
* Use writemsg_stdout() for safe unicode output.Zac Medico2009-08-071-17/+3
| | | | svn path=/main/trunk/; revision=13948
* Open repo_name in text mode (unicode).Zac Medico2009-08-071-1/+2
| | | | svn path=/main/trunk/; revision=13947
* In config.__setitem__(), convert keys/values to unicode in order to avoidZac Medico2009-08-071-1/+8
| | | | | | potential UnicodeDecodeError exceptions later. svn path=/main/trunk/; revision=13946
* Convert environment variables to unicode inside the config constructor, inZac Medico2009-08-071-1/+11
| | | | | | order to avoid potential UnicodeDecodeError exceptions later. svn path=/main/trunk/; revision=13945
* Make spawn decode unicode in order to avoid a potential UnicodeEncodeErrorZac Medico2009-08-071-0/+11
| | | | | | from os.execve(). svn path=/main/trunk/; revision=13944
* In getconfig(), specify utf_8 encoding for py3k.Zac Medico2009-08-061-1/+5
| | | | svn path=/main/trunk/; revision=13943
* In shlex_split(), don't encode unicode for py3k. Thanks to Arfrever.Zac Medico2009-08-061-1/+1
| | | | svn path=/main/trunk/; revision=13942
* Make getconfig() return unicode type and remove corresponding env_update()Zac Medico2009-08-062-11/+4
| | | | | | workaround from bug #280460. svn path=/main/trunk/; revision=13941
* Fix filter_loglevels() and filter_phases() to work with unicode.Zac Medico2009-08-061-2/+2
| | | | svn path=/main/trunk/; revision=13940
* Add a new portage.util.shlex_split() function to wrap all shlex.split() calls,Zac Medico2009-08-0610-26/+36
| | | | | | since shlex.split() doesn't behave well with unicode strings. svn path=/main/trunk/; revision=13939
* Filter PORTAGE_NONFATAL from the environment where appropriate.Zac Medico2009-08-061-1/+2
| | | | svn path=/main/trunk/; revision=13938
* Bug #280521 - Update selinux support to use the libselinux swig wrapper apiZac Medico2009-08-062-17/+105
| | | | | | | | instead of python-selinux. Thanks to Chris PeBenito <pebenito@gentoo.org> for the initial patch which I've tweaked with whitespace changes and unicode support. svn path=/main/trunk/; revision=13937
* Inside _post_src_install_uid_fix() (since we're already walking the filesZac Medico2009-08-061-0/+7
| | | | | | | here), compute total size of installed files and save it as SIZE in the vardb. This will be useful for the packagekit backend. svn path=/main/trunk/; revision=13933
* Convert unicode if necessary before writing to stdout.Zac Medico2009-08-061-11/+12
| | | | svn path=/main/trunk/; revision=13932
* Add unicode conversions in various logging code.Zac Medico2009-08-063-5/+24
| | | | svn path=/main/trunk/; revision=13931
* Convert paths to unicode when working with CONTENTS.Zac Medico2009-08-061-0/+18
| | | | svn path=/main/trunk/; revision=13930
* Fix broken os.walk call in _post_src_install_uid_fix().Zac Medico2009-08-061-1/+1
| | | | svn path=/main/trunk/; revision=13929
* Use realpath to resolve __file__ when searching for test inside main().Zac Medico2009-08-061-1/+1
| | | | svn path=/main/trunk/; revision=13928
* Remove odd os.getcwd() call used inside main() when searching for tests.Zac Medico2009-08-061-1/+1
| | | | svn path=/main/trunk/; revision=13927
* Do not pass unicode strings into os.walk calls, since it can causeZac Medico2009-08-068-5/+73
| | | | | | internal os.path.join calls to raise UnicodeDecodeError. svn path=/main/trunk/; revision=13926
* Fix transposition of CodecInfo streamreader and streamwriter attributesZac Medico2009-08-061-2/+2
| | | | | | | | | inside _gen_missing_encodings(). This solves 'TypeError: an integer is required' exceptions from codecs.open().readlines([sizehint]), triggered when python is built with USE=build (stage 1). Thanks to Daniel Robbins for reporting. svn path=/main/trunk/; revision=13925
* Fix UnicodeEncodeError in vardbapi._owners_cache._hash_str(), reported byZac Medico2009-08-051-1/+1
| | | | | | jlec on irc. svn path=/main/trunk/; revision=13924
* Bug #280460 - Fix UnicodeDecodeError in env_update() due to non-unicodeZac Medico2009-08-051-0/+12
| | | | | | strings from getconfig(). TODO: Make getconfig() return unicode. svn path=/main/trunk/; revision=13921
* Fix insert_optional_args() to properly handle thinks like -Dk which requireZac Medico2009-08-051-1/+3
| | | | | | multiple substitutions of default arguments. svn path=/main/trunk/; revision=13919
* s/utf8/utf_8/ for consistencyv2.2_rc36Zac Medico2009-08-051-1/+1
| | | | svn path=/main/trunk/; revision=13917
* Fix the FEATURES=parse-eapi-ebuild-head regex to handle comments on the sameZac Medico2009-08-051-1/+1
| | | | | | | | | | line, like this: EAPI=2 #foo Thanks to Markus Meier <maekke@gentoo.org> for reporting. svn path=/main/trunk/; revision=13916
* Open ld.so.conf as text (unicode).Zac Medico2009-08-051-1/+2
| | | | svn path=/main/trunk/; revision=13915
* In _check_build_log(), open the log in text mode (unicode).Zac Medico2009-08-051-1/+2
| | | | svn path=/main/trunk/; revision=13914
* Open file in text mode (unicode) where appropriate.Zac Medico2009-08-059-9/+34
| | | | svn path=/main/trunk/; revision=13913
* Open all files in binary mode for py3k compatibility.Zac Medico2009-08-041-15/+15
| | | | svn path=/main/trunk/; revision=13912
* Fix bindbapi.aux_get and aux_update to work with py3k/unicode.Zac Medico2009-08-041-7/+30
| | | | svn path=/main/trunk/; revision=13911
* Avoid UnicodeEncodeError with unicode package.mask comments. Thanks toZac Medico2009-08-041-0/+5
| | | | | | Thanks to Scott Moreau (soreau) for reporting. svn path=/main/trunk/; revision=13910
* Fix vardbapi._aux_get() to always return unicode.Zac Medico2009-08-041-2/+2
| | | | svn path=/main/trunk/; revision=13909
* Fix tar_contents() to open files in binary mode for py3k compatibility.Zac Medico2009-08-041-1/+1
| | | | svn path=/main/trunk/; revision=13908
* Always return unicode from vardbapi.aux_get().Zac Medico2009-08-041-2/+9
| | | | svn path=/main/trunk/; revision=13907
* Bug #280269 - Fix Atom.__str__ so that it doesn't try to encode a unicodeZac Medico2009-08-041-1/+3
| | | | | | | string (resulting in UnicodeEncodeError). If an Atom instance is passed into the constructor, just return the given instance. svn path=/main/trunk/; revision=13905
* Bug #280269 - Decode commandline arguments to unicode when necessary.Zac Medico2009-08-041-0/+4
| | | | svn path=/main/trunk/; revision=13904