summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Bug #280269 - Fix StaticFileSet.multiBuilder() to handle unicode filenames.Zac Medico2009-08-041-0/+3
| | | | svn path=/main/trunk/; revision=13903
* Open CONTENTS in text mode (to avoid UnicodeEncodeError). Thanks to MarkosZac Medico2009-08-041-2/+5
| | | | | | Chandras <hwoarang@gentoo.org> for reporting. svn path=/main/trunk/; revision=13902
* Open log files in text mode (to avoid UnicodeEncodeError). Thanks to MarkosZac Medico2009-08-041-3/+7
| | | | | | Chandras <hwoarang@gentoo.org> for reporting. svn path=/main/trunk/; revision=13901
* Avoid UnicodeEncodeError in writemsg(). Thanks to Markos ChandrasZac Medico2009-08-041-0/+3
| | | | | | <hwoarang@gentoo.org> for reporting. svn path=/main/trunk/; revision=13900
* Bug #280275 - Fix exception: AttributeError: 'config' object has no attributeZac Medico2009-08-041-1/+2
| | | | | | '_license_groups'. svn path=/main/trunk/; revision=13898
* Revert the code from bug #278729 for now since it need to be redone in orderZac Medico2009-08-041-28/+6
| | | | | | to account for the issue described in comment #3. svn path=/main/trunk/; revision=13894
* In the dep_zapdeps() code from bug #278729, set all_use_satisfied = FalseZac Medico2009-08-041-0/+1
| | | | | | if the choice includes an unavailable package. svn path=/main/trunk/; revision=13893
* Fix dep_zapdeps exception 'ValueError: need more than 3 values to unpack'Zac Medico2009-08-041-1/+1
| | | | | | from r13888. svn path=/main/trunk/; revision=13892
* Bug #280259 - Fix binarytree to always open the Packages file as unicode.Zac Medico2009-08-041-25/+7
| | | | svn path=/main/trunk/; revision=13890
* Bug #280259 - Use codecs.open() when reading the Packages file insideZac Medico2009-08-041-1/+3
| | | | | | | binarytree.inject(), in order to avoid a UnicodeDecodeError when the file is later written as a unicode stream (via atomic_ofstream). svn path=/main/trunk/; revision=13889
* Fix a regression caused by the code from bug #278729, which causes incorrectZac Medico2009-08-041-4/+20
| | | | | | | | | | | | | | preference evaluation for cases like kde-base/nepomuk: || ( >=dev-libs/soprano-2.3.0[clucene,dbus,raptor,redland] >=dev-libs/soprano-2.3.0[clucene,dbus,raptor,java] ) In cases like this we need to prefer the choice which is already satisfied by current USE configuration. Thanks to Maciej Mrozowski <reavertm@poczta.fm> for reporting. svn path=/main/trunk/; revision=13888
* Set "emerge" xterm title at the beginning of running emerge.Arfrever Frehtes Taifersar Arahesis2009-08-041-2/+4
| | | | svn path=/main/trunk/; revision=13887
* Fix NameError from r13880. Thanks to Arfrever for reporting.Zac Medico2009-08-031-1/+1
| | | | svn path=/main/trunk/; revision=13883
* Bug #278729 - Inside dep_zapdeps(), ignore USE dependencies since we don'tZac Medico2009-08-031-1/+6
| | | | | | | | want USE settings to adversely affect || preference evaluation. Drop invalid atoms inside _expand_new_virtuals() since we only want real Atom instances inside dep_zapdeps(). svn path=/main/trunk/; revision=13881
* Bug #278729 - Add an Atom.without_use attribute which is identical to theZac Medico2009-08-032-16/+11
| | | | | | atom itself, except without any USE dependencies. svn path=/main/trunk/; revision=13880
* Remove the code from bug #278895 since we're going to need a daemon processZac Medico2009-08-031-1/+0
| | | | | | | | | | | | in the ebuild's login session in order to pass signals from the controlling terminal to the detached session. A simple fifo-based approach in ebuild.sh does not seem to work since bash's read builtin occasionally loses the fifo data when it's 'Interrupted system call'. Maybe a python script will work better for the session leader/daemon. NOTE: The daemon will also be useful for implementing a fifo-based die helper (to replace the current signal- based approach). svn path=/main/trunk/; revision=13879
* Only treat non-negative integers as valid in insert_optional_args().Zac Medico2009-08-011-2/+1
| | | | svn path=/main/trunk/; revision=13874