summaryrefslogtreecommitdiffstats
path: root/pym/portage/util
Commit message (Collapse)AuthorAgeFilesLines
...
* find_updated_config_files: x var name collisionZac Medico2012-09-131-2/+2
| | | | This broke in commit 09de8dc47ec48af2276dfa098dd5e1d3d09ddbdd.
* Replace getstatusoutput with unicode safe Popen.Zac Medico2012-09-111-7/+14
| | | | This fixes potential issues similar to those reported in bug #310789.
* Only validate .desktop files that are installed into XDG-compliant locations.Michael Palimaka2012-09-111-54/+3
| | | | This replaces the existing error blacklist, and therefore removes the repoman check.
* validate_desktop_entry: filter more KDE noise.Michael Palimaka2012-09-031-2/+7
|
* validate_desktop_entry: handle emacs.desktopZac Medico2012-09-021-0/+14
| | | | See <https://bugs.freedesktop.org/show_bug.cgi?id=35844#c6>.
* validate_desktop_entry: filter more kde noiseZac Medico2012-08-261-14/+46
| | | | This will fix bug #432862.
* read_corresponding_eapi_file: cache resultsZac Medico2012-08-231-0/+7
|
* EventLoop: handle EINTR IOError for epollZac Medico2012-08-221-2/+4
|
* EventLoop: use epoll when availableZac Medico2012-08-211-7/+52
| | | | This will fix bug #432024.
* WhirlpoolAdd: raise TypeError if not bytesZac Medico2012-08-041-0/+2
|
* parse_desktop_entry: fix python3 bug #429544Zac Medico2012-08-021-1/+5
|
* _urlopen: fix python2 http password breakageZac Medico2012-08-011-29/+11
| | | | | | | | This broke in commit e06cb6d66db37ac7ab77acf65038b1f770c13c96 since CompressedResponseProcessor did not include password auth support. BUG: The if_modified_since parameter appears to be ignored when using http password authentication.
* Add support for HTTP compression (bzip2, gzip and deflate).W-Mark Kubacki2012-08-011-1/+31
|
* Use If-Modified-Since HTTP-header and avoid downloading a remote index if ↵W-Mark Kubacki2012-08-011-4/+41
| | | | the local copy is recent enough.
* Use nanosecond precision in portage.util.movefile.movefile().Arfrever Frehtes Taifersar Arahesis2012-08-011-17/+38
|
* grabfile_package: show real file name in errorZac Medico2012-06-171-1/+1
|
* grablines: raise PermissionDenied if appropriateZac Medico2012-06-011-2/+13
|
* movefile: fix abs symlink adjustment, bug #416431Zac Medico2012-05-171-3/+3
|
* getconfig: only raise ParseErrorv2.2.0_alpha107Zac Medico2012-05-161-1/+1
|
* getconfig: use shlex.error_leader() moreZac Medico2012-05-151-22/+23
| | | | | This fixes it to show the correct file/line, even when one file sources another.
* binhost: http auth for python3 (bug #413983)Zac Medico2012-05-131-0/+42
| | | | | | | | This uses the code from commit 58a8cd1bb943522bc53d02c008ee8eff798bfaaa as a fallback for python3 when the default urlopen function fails. This has been tested and is known to work with thttpd password authentication (it works unencrypted and also when encrypted with stunnel).
* Revert "Bug #413983: Add portage.util.urlopen(), which transparently handles ↵Zac Medico2012-05-131-19/+0
| | | | | | | authentication in the way compatible with Python 3." This reverts commit 0a9cc38a66ded0cf0e5b534cb24b970fc9c21920. As reported in bug #415579, that commit broke FTP authentication.
* test_digraph: fix get_cycles for PYTHONHASHSEEDZac Medico2012-05-121-4/+11
|
* PollScheduler: use local EventLoop (thread safe)Zac Medico2012-05-101-18/+32
| | | | | | | For API consumers, this makes the doebuild() function compatible with threads, avoiding a ValueError raised by the signal module, as reported at http://bugs.sabayon.org/show_bug.cgi?id=3305. Classes derived from PollScheduler still use the signal module when possible.
* validate_desktop_entry: handle Python 3.1Zac Medico2012-05-011-1/+6
|
* Bug #413983: Add portage.util.urlopen(), which transparentlyArfrever Frehtes Taifersar Arahesis2012-05-011-1/+20
| | | | handles authentication in the way compatible with Python 3.
* repoman: ignore false Service desktop entry errorZac Medico2012-04-301-0/+70
| | | | This will fix bug #414125.
* varexpand: optimize access to current charv2.2.0_alpha97Zac Medico2012-03-311-19/+28
|
* getconfig: show error message for varexpand failZac Medico2012-03-311-2/+19
|
* varexpand: use frozenset for word charactersZac Medico2012-03-311-2/+3
|
* varexpand: use list for efficient appendZac Medico2012-03-311-13/+13
|
* varexpand: don't cache resultsZac Medico2012-03-271-13/+4
| | | | | Caching wasn't really necessary here, and it didn't properly account for input differences in the 'mydict' parameter.
* movefile: use writemsg for unicode safetyZac Medico2012-03-271-12/+13
|
* Replace @returns with @return.Zac Medico2012-03-277-7/+7
|
* grabdict: remove incorrect docstring, bug #409839Greg Turner2012-03-271-1/+0
|
* movefile: import print_functionZac Medico2012-03-231-0/+2
| | | | | This fixes printing of tuples under python-2.x, as shown in bug #402323.
* movefile: clarify message for xattr copy errorv2.2.0_alpha95Zac Medico2012-03-231-1/+13
| | | | This will fix bug #402323.
* movefile: refactor selinux conditional codeZac Medico2012-03-231-15/+13
|
* mtimedb: fix hexversion for python issue 5729Zac Medico2012-03-222-2/+2
|
* mtimedb: enable JSON write supportv2.2.0_alpha94Zac Medico2012-03-221-11/+11
| | | | JSON read support has been available since portage-2.1.10.49.
* PreservedLibsRegistry: try to parse as JSON firstZac Medico2012-03-221-3/+3
|
* PreservedLibsRegistry: enable JSON write supportZac Medico2012-03-211-2/+2
| | | | JSON read support has been available since portage-2.2.0_alpha89.
* whirlpool.py: fix WhirlpoolAdd for bug #406407Zac Medico2012-03-051-1/+1
| | | | | | | | | This file is a python port of Whirlpool.c the reference implementation: http://www.larc.usp.br/~pbarreto/whirlpool.zip Comparison of both implementations reveals a difference in loop logic at the very beginning of the WhirlpoolAdd function, which is fixed now.
* pruneNonExisting: handle eselect-opengl symlinksv2.2.0_alpha90Zac Medico2012-03-041-3/+33
| | | | | | | | | | | Only count symlinks as preserved if they still point to a hardink in the same directory, in order to handle cases where a tool such as eselect-opengl has updated the symlink to point to a hardlink in a different directory (see bug #406837). The unused hardlink is automatically found by _find_unused_preserved_libs, since the soname symlink no longer points to it. After the hardlink is removed by _remove_preserved_libs, it calls pruneNonExisting which eliminates the irrelevant symlink from the registry here.
* _eventloop: use explicit relative importsv2.2.0_alpha87Zac Medico2012-02-173-7/+6
|
* MtimeDB: add JSON read/writeZac Medico2012-02-171-14/+55
| | | | | | | | Support serialization as JSON instead of pickle, so that /var/cache/edb/mtimedb is human readable/writable, for those rare cases where it may be useful. Currently, pickle is still used for writes. The plan is to migrate to JSON after JSON read has been supported for some time.
* MtimeDB._load: explicitly close fileZac Medico2012-02-171-3/+5
|
* PreservedLibsRegistry: add JSON read/writeZac Medico2012-02-171-10/+51
| | | | | | | | Support serialization as JSON instead of pickle, so that /var/lib/portage/preserved_libs_registry is human readable/writable, for those rare cases where it may be useful. Currently, pickle is still used for writes. The plan is to migrate to JSON after JSON read has been supported for some time.
* PollSelectAdapter: don't inherit PollConstantsZac Medico2012-02-171-1/+1
|
* Move Poll{Constants,SelectAdapter} to _eventloop.Zac Medico2012-02-173-3/+94
|