summaryrefslogtreecommitdiffstats
path: root/bin/emerge
Commit message (Collapse)AuthorAgeFilesLines
* Add portage._internal_caller var, and use it.Zac Medico2013-01-031-1/+4
|
* emerge: handle KeyboardInterrupt, not SIGINTZac Medico2012-10-141-45/+52
| | | | | | | | We handle KeyboardInterrupt instead of installing a SIGINT handler, since exiting from signal handlers intermittently causes python to ignore the SystemExit exception with a message like this: Exception SystemExit: 130 in <function remove at 0x7fd2146c1320> ignored
* Unconditionally insert our pym dir in sys.path.Zac Medico2012-09-021-7/+4
| | | | | This is especially necessary when running in prefix mode, since sys.path may contain the path for a different version of portage.
* Don't use SIGUSR1 under Jython, bug #424259.Zac Medico2012-07-021-2/+9
|
* When killed by signal, return 128 + signum.Zac Medico2011-01-151-4/+4
| | | | | This is the same convention that bash uses for returncodes of processes that are killed by signals.
* Add back executable bits, accidentally removed in previous commit.Zac Medico2010-03-241-0/+0
|
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Update SIGPIPE comments to refer to "[Errno 32] Broken pipe" exceptions sinceZac Medico2010-03-131-1/+2
| | | | | | | this is signal hander now set automatically for subprocesses after the fork in portage.process.spawn(). svn path=/main/trunk/; revision=15826
* Add references to bug #309001 in comments about SIGPIPE handling.Zac Medico2010-03-131-0/+1
| | | | svn path=/main/trunk/; revision=15824
* Support print() function with Python 2 in some files.Arfrever Frehtes Taifersar Arahesis2009-09-201-0/+2
| | | | svn path=/main/trunk/; revision=14291
* Update syntax of 'except' statements for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-2/+2
| | | | | | (2to3-3.1 -f except -nw ${FILES}) svn path=/main/trunk/; revision=14289
* Bug #280320 - Fix broken _emerge.main ImportError handler..Zac Medico2009-08-041-1/+1
| | | | svn path=/main/trunk/; revision=13895
* Move __init__.py to main.py.Zac Medico2009-06-261-2/+2
| | | | svn path=/main/trunk/; revision=13698
* Update copyright headers.Zac Medico2009-03-181-2/+2
| | | | svn path=/main/trunk/; revision=13131
* Bug #261852 - If an unexpected exception is raise from emerge_main() thenZac Medico2009-03-101-0/+16
| | | | | | | show the traceback after the mod_echo output to that the traceback isn't obscured by mod_echo flooding. svn path=/main/trunk/; revision=12814
* Add SIGUSR1 signal handlers that call pdb.set_trace(). Thanks to Brian ↵Zac Medico2008-12-231-0/+5
| | | | | | | | Harring for the suggestion. svn path=/main/trunk/; revision=12292
* Move initial signal handlers to the launcher script.Zac Medico2008-12-231-0/+17
| | | | svn path=/main/trunk/; revision=12290
* Instead of calling sys.exit when a ParseError occurs in the configZac Medico2007-12-111-1/+4
| | | | | | | | | constructor, raise a ParseError and make emerge and portageq handle the error. This way consumers of the portage api can handle the ParseError rather than have their application exit. Thanks to lxnay for reporting. svn path=/main/trunk/; revision=8884
* Move the emerge module to _emerge to make it privateZac Medico2007-10-161-3/+3
| | | | | | | since it's mostly unsuitable for api consumers at this time. svn path=/main/trunk/; revision=8142
* For bug #180165, make portageq print a "Permission denied" error when ↵Zac Medico2007-06-201-1/+7
| | | | | | appropriate. A PermissionDenied exception is raised from portage.listdir() enven when EmptyOnError is True since errno.EACCES is very likely to indicate a condition that should be reported in any case. svn path=/main/trunk/; revision=6881
* In the same vein as copyright, add Id and svn:keywords to itAlec Warner2007-03-031-0/+1
| | | | svn path=/main/trunk/; revision=6154
* you can't insert into sys.path without importing sys...Alec Warner2007-03-031-0/+3
| | | | svn path=/main/trunk/; revision=6153
* For full backwards compat (with symlinks or other weird stuff) import ↵Marius Mauch2007-02-171-3/+3
| | | | | | everything into the main namespace svn path=/main/trunk/; revision=5979
* Move bin/emerge to pym/emerge/__init__.py to restore old import behavior as ↵Marius Mauch2007-02-171-5366/+5
| | | | | | the load_source solution doesn't work properly svn path=/main/trunk/; revision=5978
* Print hostname in xterm title if sheridan is available in the environmentMarius Mauch2007-02-171-4/+5
| | | | svn path=/main/trunk/; revision=5976
* Print filename when displaying package.mask commentsMarius Mauch2007-02-171-2/+3
| | | | svn path=/main/trunk/; revision=5974
* Optimize merge order calculation for --tree output when necessary.Zac Medico2007-02-141-1/+2
| | | | svn path=/main/trunk/; revision=5967
* For bug #158100, use an exact reversal of the actual merge order for --tree ↵Zac Medico2007-02-141-0/+5
| | | | | | output. It's more efficient than doing 2 order calculations. svn path=/main/trunk/; revision=5965
* In the event of a circular dependency panic, eliminate root nodes in order ↵Zac Medico2007-02-121-0/+9
| | | | | | to reduce the noise level to a minimum. svn path=/main/trunk/; revision=5956
* Use os.path.realpath to handle symlinks properly.Zac Medico2007-02-101-1/+1
| | | | svn path=/main/trunk/; revision=5945
* Fix automatic sys.path insertions so that they're relative instead of ↵Zac Medico2007-02-101-1/+2
| | | | | | absolute hard coded. svn path=/main/trunk/; revision=5942
* Create namespace for emergeMarius Mauch2007-02-081-3/+4
| | | | svn path=/main/trunk/; revision=5931
* For bug #165780, make config-protect code consistently ignore '.*~' and ↵Zac Medico2007-02-071-1/+2
| | | | | | '.*.bak'. svn path=/main/trunk/; revision=5914
* For bug #165783, handle an InvalidDependString exception triggered by an ↵Zac Medico2007-02-071-3/+9
| | | | | | invalid SRC_URI. svn path=/main/trunk/; revision=5908
* For backward compatibility with api consumers, _dep_check_strict behavior ↵Zac Medico2007-02-071-0/+1
| | | | | | will be explicitly enabled as necessary. Thanks to Brian <dol-sen@telus.net> for reporting issues with porthole and equery. svn path=/main/trunk/; revision=5907
* For bug #165382, show a helpful message if an exception is raised from ↵Zac Medico2007-02-051-3/+16
| | | | | | cpv_expand(). svn path=/main/trunk/; revision=5897
* Fix another UnboundLocalError (branches/prefix r5893)Zac Medico2007-02-051-2/+2
| | | | svn path=/main/trunk/; revision=5895
* Fix "UnboundLocalError: local variable 'portage' referenced before ↵Zac Medico2007-02-031-2/+2
| | | | | | assignment" caused by a local import hiding a global import. svn path=/main/trunk/; revision=5887
* Rename dir.bz2 since that's the most likely case now.Zac Medico2007-02-011-1/+1
| | | | svn path=/main/trunk/; revision=5865
* Fix --newuse so that it works correctly with --usepkg.Zac Medico2007-02-011-2/+1
| | | | svn path=/main/trunk/; revision=5859
* Load the most current variables from /etc/profile.env for post_emerge stuff.Zac Medico2007-02-011-0/+6
| | | | svn path=/main/trunk/; revision=5858
* Fix "UnboundLocalError: local variable 'portage' referenced before ↵Zac Medico2007-01-301-1/+0
| | | | | | assignment" caused by an unnecessary local import hiding a global import. svn path=/main/trunk/; revision=5838
* For bug #164363, shuffle the ip addresses returned from socket.getaddrinfo().Zac Medico2007-01-301-0/+2
| | | | svn path=/main/trunk/; revision=5833
* For bug #164078, don't trigger the CLEAN_DELAY countdown for autoclean ↵Zac Medico2007-01-291-4/+5
| | | | | | operations since those are most likely unattended. Thanks to Dan <hydrogen@notyetimplemented.com> for the initial patch. svn path=/main/trunk/; revision=5827
* Remove a stray print statement. Thanks to Rick Warner in bug #125261.Zac Medico2007-01-281-1/+0
| | | | svn path=/main/trunk/; revision=5799
* Ignore EEXIST from rmdir since some kernels (such as solaris) return that ↵Zac Medico2007-01-271-1/+2
| | | | | | instead of ENOTEMPTY. svn path=/main/trunk/; revision=5798
* For consistency, do not imply --pretend with --changelog since that prevents ↵Zac Medico2007-01-271-5/+0
| | | | | | --changelog from being usable in EMERGE_DEFAULTS_OPTS. Thanks to Ryan Hill <dirtyepic@gentoo.org> in #151250. svn path=/main/trunk/; revision=5790
* Namespace sanitizing, step 5Marius Mauch2007-01-251-87/+88
| | | | svn path=/main/trunk/; revision=5785
* For bug #161356, prevent an AttributeError if the exception has no ↵Zac Medico2007-01-201-1/+1
| | | | | | __module__ attribute. svn path=/main/trunk/; revision=5737
* Simplify rsync timestamp.chk handling and print the correct path for bug ↵Zac Medico2007-01-181-50/+43
| | | | | | #50738. Thanks to jeka for reporting on irc. svn path=/main/trunk/; revision=5716