summaryrefslogtreecommitdiffstats
path: root/pym/portage/package/ebuild/_ipc/QueryCommand.py
Commit message (Collapse)AuthorAgeFilesLines
* Use unicode_literals more.Zac Medico2013-01-181-3/+4
| | | | | This helps to ensure consistent results, regardless of whether we're using Python 2 or Python 3.
* EAPI="5-progress": Add master_repositories(), repository_path(),Arfrever Frehtes Taifersar Arahesis2012-10-141-26/+60
| | | | available_eclasses(), eclass_path() and license_path() functions.
* best_version() and has_version(): Improve die() messages.Arfrever Frehtes Taifersar Arahesis2012-10-071-2/+2
| | | | | | - Print different die() message for invalid atoms. - Mention ebuild-ipc instead of portageq in other die() messages when ebuild-ipc is actually used.
* QueryCommand: add get_db() classmethodZac Medico2012-06-111-3/+7
|
* Replace @returns with @return.Zac Medico2012-03-271-1/+1
|
* Support repository dependencies in EAPI="4-python".Arfrever Frehtes Taifersar Arahesis2012-01-161-3/+6
|
* Remove unneeded _unicode_decode for io.StringIO.Zac Medico2011-07-121-3/+1
| | | | | | | Since StringIO.StringIO fallback was removed in commit 5df96179611ce0e98727945b1800b43daccedfc2, we can rely on io.StringIO.getoutput() to return unicode, so there's no need to call _unicode_decode on the result.
* Remove python-2.6 StringIO.StringIO fallback.Zac Medico2011-07-121-3/+4
| | | | | | | | Since the io module in python-2.6 was broken when threading was disabled, we needed to fall back from io.StringIO to StringIO.StringIO in this case (typically just for Gentoo's stage1 and stage2 tarballs). Now that python-2.7 is stable in stages and we rely on io.open() being available, we can also rely on io.StringIO being available.
* has/best_version: eqawarn if EAPI wrong for atomZac Medico2010-10-111-7/+45
| | | | | Instead of calling die as in bug #340387, just call eqawarn for the time being.
* Use EAPI to validate best/has_version atoms.Zac Medico2010-10-081-1/+1
|
* Add support to config.setcpv() for caching USE settings from builtZac Medico2010-09-011-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | packages, and use it for evaluating conditional USE deps in atoms passed via IPC to helpers like has_version and best_version. Since the pickled object that contains the IPC command will no longer contain USE, it should solve cases that have been reported in which large USE strings trigger poor handling of non-blocking read in pickle.load(): Traceback (most recent call last): File "/usr/bin/emerge", line 43, in <module> retval = emerge_main() File "/usr/lib64/portage/pym/_emerge/main.py", line 1649, in emerge_main myopts, myaction, myfiles, spinner) File "/usr/lib64/portage/pym/_emerge/actions.py", line 437, in action_build retval = mergetask.merge() File "/usr/lib64/portage/pym/_emerge/Scheduler.py", line 1033, in merge rval = self._merge() File "/usr/lib64/portage/pym/_emerge/Scheduler.py", line 1349, in _merge self._main_loop() File "/usr/lib64/portage/pym/_emerge/Scheduler.py", line 1498, in _main_loop self._poll_loop() File "/usr/lib64/portage/pym/_emerge/PollScheduler.py", line 139, in _poll_loop handler(f, event) File "/usr/lib64/portage/pym/_emerge/EbuildIpcDaemon.py", line 36, in _input_handler obj = pickle.load(self._files.pipe_in) File "/usr/lib64/python2.6/pickle.py", line 1370, in load return Unpickler(file).load() File "/usr/lib64/python2.6/pickle.py", line 858, in load dispatch[key](self) File "/usr/lib64/python2.6/pickle.py", line 1195, in load_setitem value = stack.pop() IndexError: pop from empty list
* Pass $USE via IPC in order to ensure that we have the correct value forZac Medico2010-08-141-2/+8
| | | | | | built/installed packages, since the config class doesn't currently provide a way to access built/installed $USE that would work in all possible scenarios.
* Add a QueryCommand.settings attribute and use it so that $USEZac Medico2010-08-141-4/+5
| | | | | doesn't have to be passed to the daemon in has_version and best_version calls.
* Bug #315615 - Use EbuildIpcDaemon to implement has_version and best_version.Zac Medico2010-08-131-0/+55
This provides performance benefits and also avoids permissions issues with FEATURES=userpriv.