summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/actions.py
Commit message (Collapse)AuthorAgeFilesLines
* When integer mtime is desired, use stat_obj[stat.ST_MTIME] instead of theZac Medico2009-12-241-1/+1
| | | | | | | float st_mtime in order to avoid rounding *up* in some rare cases. (trunk r15125) svn path=/main/branches/2.1.7/; revision=15137
* In calc_depclean(), load the FakeVartree before using it. This fixesZac Medico2009-11-271-1/+1
| | | | | | | a regression which causes incomplete graph creation (since r14773). Thanks to Vlastimil Babka <caster@g.o> for reporting. (trunk r14899) svn path=/main/branches/2.1.7/; revision=14904
* Bug #291200 - Make --quiet-build set PORTAGE_QUIET=1, so that --unmerge isZac Medico2009-11-161-1/+1
| | | | | | quiet. (trunk r14821) svn path=/main/branches/2.1.7/; revision=14838
* Bug #292664 - Show ACCEPT_LICENSE in emerge --info. (trunk r14814)Zac Medico2009-11-161-1/+2
| | | | svn path=/main/branches/2.1.7/; revision=14832
* Bug #278336 - Use adjust_config to set PORTAGE_QUIET when the config isZac Medico2009-11-161-0/+9
| | | | | | | reloaded after sync, so that PORTAGE_QUIET is set when the post_sync script is executed. (trunk r14805) svn path=/main/branches/2.1.7/; revision=14828
* Decode git output in _emerge.actions.git_sync_timestamps() for bug #291790.Zac Medico2009-11-071-1/+2
| | | | | | (trunk r14777) svn path=/main/branches/2.1.7/; revision=14790
* Bug #134466 - Add a --ask-enter-invalid option. When used together with theZac Medico2009-10-241-5/+11
| | | | | | | --ask option, interpret a single "Enter" key press as invalid input. This helps prevent accidental acceptance of the first choice. (trunk r14710) svn path=/main/branches/2.1.7/; revision=14719
* Factor out duplicate "These are the packages that would be merged",Zac Medico2009-10-241-46/+1
| | | | | | "Calculating dependencies", and spinner cleanup code. (trunk r14704) svn path=/main/branches/2.1.7/; revision=14713
* Add a --unordered-display option for use with --tree. This allows the displayZac Medico2009-10-241-2/+8
| | | | | | | to be optimized differently since the merge order is not preserved. Thanks to Sebastian Mingramm (few) for the initial patch. (trunk r14703) svn path=/main/branches/2.1.7/; revision=14712
* In calc_depclean(), Rename 'selected' to 'world', since 'selected' is currentlyZac Medico2009-10-191-0/+4
| | | | | | | considered to be an internal set and we don't want it to be displayed to the user as a reverse dependency. svn path=/main/branches/2.1.7/; revision=14693
* Add support for display of nested sets in --depclean and --prune reverseZac Medico2009-10-191-36/+41
| | | | | | | | dependency output. This also fixes a bug from the 'selected' set changes which could cause the system set to be disregarded in some cases. (trunk r14680) svn path=/main/branches/2.1.7/; revision=14691
* Call config._init_dirs() from emerge so that it's not called every timeZac Medico2009-10-181-0/+1
| | | | | | the portage api is imported. (trunk r14631) svn path=/main/branches/2.1.7/; revision=14659
* Merge the internal package set changes from trunk r14614 (bug #266454). NoneZac Medico2009-10-181-5/+5
| | | | | | | of these changes should be noticeable to users. This is just to keep the diff relative to trunk as small as possible. svn path=/main/branches/2.1.7/; revision=14642
* Revert the rest of the package sets related code and docs, to behave like theZac Medico2009-10-101-2/+2
| | | | | | 2.1.6 branch. svn path=/main/branches/2.1.7/; revision=14549
* Fix _set module imports for rename, add hardcoded config for system and world,Zac Medico2009-10-101-2/+2
| | | | | | and remove unused sets code. svn path=/main/branches/2.1.7/; revision=14540
* Revert preserve-libs support since it won't be supported in this branch.Zac Medico2009-10-101-180/+4
| | | | svn path=/main/branches/2.1.7/; revision=14538
* Handle AUTOCLEAN and NOCOLOR case insensitivity inside config.Zac Medico2009-10-091-8/+0
| | | | svn path=/main/trunk/; revision=14528
* Bug #287950 - Add a --fail-clean[=n] option, for enabling or disablingZac Medico2009-10-081-0/+13
| | | | | | FEATURES=fail-clean from the command line. svn path=/main/trunk/; revision=14518
* - move news into features so it can be ignored when needed. Lots of ↵Ned Ludd2009-10-051-9/+11
| | | | | | whitespace cleanups svn path=/main/trunk/; revision=14497
* Fix breakage in file path -> package lookup code.Zac Medico2009-09-281-1/+1
| | | | svn path=/main/trunk/; revision=14455
* Replace dict.keys() usage with __iter__(), since it behaves identically inZac Medico2009-09-221-2/+2
| | | | | | both python 2.x and 3.x. svn path=/main/trunk/; revision=14380
* Define long as int when Python 3 is used.Arfrever Frehtes Taifersar Arahesis2009-09-211-0/+3
| | | | svn path=/main/trunk/; revision=14343
* Use dict.(keys|values|items)() instead of ↵Arfrever Frehtes Taifersar Arahesis2009-09-211-13/+13
| | | | | | | | dict.(iterkeys|itervalues|iteritems)() for compatibility with Python 3. (2to3-3.1 -f dict -nw ${FILES}) svn path=/main/trunk/; revision=14327
* Use range() instead of xrange() for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-211-1/+1
| | | | | | (2to3-3.1 -f xrange -nw ${FILES}) svn path=/main/trunk/; revision=14317
* Use filter() and zip() instead of itertools.ifilter() and itertools.izip() ↵Arfrever Frehtes Taifersar Arahesis2009-09-211-3/+3
| | | | | | | | for compatibility with Python 3. (2to3-3.1 -f itertools -f itertools_imports -nw ${FILES}) svn path=/main/trunk/; revision=14314
* Support print() function with Python 2 in more files.Arfrever Frehtes Taifersar Arahesis2009-09-201-0/+2
| | | | svn path=/main/trunk/; revision=14295
* Update system imports for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-6/+9
| | | | svn path=/main/trunk/; revision=14294
* Update syntax of numbers in some files which were missing in previous commit.Arfrever Frehtes Taifersar Arahesis2009-09-201-8/+8
| | | | svn path=/main/trunk/; revision=14293
* Update syntax of calls to print() for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-148/+147
| | | | | | (2to3-3.1 -f print -nw ${FILES}) svn path=/main/trunk/; revision=14290
* Update syntax of 'except' statements for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-26/+26
| | | | | | (2to3-3.1 -f except -nw ${FILES}) svn path=/main/trunk/; revision=14289
* Avoid lots of redundant Atom constructor calls. Thanks to Marat RadchenkoZac Medico2009-09-191-2/+1
| | | | | | <marat@slonopotamus.org> for the initial patch from bug #276813. svn path=/main/trunk/; revision=14282
* In display_news_notification(), use the exising vartree instance to populateZac Medico2009-09-061-0/+6
| | | | | | | settings.treeVirtuals, to avoid having a temporary one instantiated. Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for reporting. svn path=/main/trunk/; revision=14208
* consistently use CACHE_PATH with target_root, this commit needs a separate ↵Fabian Groffen2009-09-051-1/+1
| | | | | | soon to be done commit of pym/portage/const.py to work correctly svn path=/main/trunk/; revision=14188
* Use the new portage.output._init(config_root) function.Zac Medico2009-08-181-1/+1
| | | | svn path=/main/trunk/; revision=14089
* Update imports to import portage.os (with unicode wrappers), and useZac Medico2009-08-111-8/+2
| | | | | | _unicode_encode() and _unicode_decode() where appropriate. svn path=/main/trunk/; revision=13995
* In calc_depclean(), sort packages that are displayed due to being pulledZac Medico2009-08-101-1/+2
| | | | | | in by link level dependencies. svn path=/main/trunk/; revision=13970
* Inside calc_depclean(), use LinkageMap.findConsumers() for checkingZac Medico2009-08-101-15/+11
| | | | | | | intersection of files being removed with providers in the LinkageMap (a KeyError is raised when there is no intersection). svn path=/main/trunk/; revision=13968
* Add a new portage.util.shlex_split() function to wrap all shlex.split() calls,Zac Medico2009-08-061-4/+3
| | | | | | since shlex.split() doesn't behave well with unicode strings. svn path=/main/trunk/; revision=13939
* Rename get_updated_config_files() to find_updated_config_files() and makeZac Medico2009-07-301-2/+3
| | | | | | it an iterator of tuples. svn path=/main/trunk/; revision=13859
* Add get_updated_config_files in portage APIMounir Lamouri2009-07-301-52/+13
| | | | | | | chk_updated_cfg_files in _emerge API is now using get_updated_config_files It lets other app to get updated config files without ouputs svn path=/main/trunk/; revision=13858
* Add comment in calc_depclean() about topological sort optimization thatZac Medico2009-07-211-1/+2
| | | | | | minimizes issues with implicit deps. svn path=/main/trunk/; revision=13846
* Move mtimedb resume list code from action_build() toZac Medico2009-07-201-8/+0
| | | | | | Scheduler._save_resume_list(). svn path=/main/trunk/; revision=13841
* Remove leading slash from appropriate paths inside portage.const, so thatZac Medico2009-07-121-4/+5
| | | | | | | lstrip(os.sep) is not needed for os.path.join() calls. Thanks to Fabian Groffen <grobian@g.o> for this patch. svn path=/main/trunk/; revision=13821
* Move the backtracking code from action_build() to a new backtrack_depgraph()Zac Medico2009-07-121-38/+14
| | | | | | function. svn path=/main/trunk/; revision=13818
* Delete runtime_pkg_mask to avoid memory leak.Zac Medico2009-07-041-1/+1
| | | | svn path=/main/trunk/; revision=13774
* Cleanup spinner before calling depgraph.display_problems().Zac Medico2009-07-041-0/+2
| | | | svn path=/main/trunk/; revision=13770
* Bug #275217 - Part 5 - When a slot conflict occurs, mask the first packageZac Medico2009-07-041-15/+39
| | | | | | | | | | | | | that got pulled in and restart the calculation. Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for the initial patch which I added some additional features to: * display message about missed updates * cache frozen_config instance, to optimize performance * disable backtracking if it fails, fall back to a normal dep calculation + error message. svn path=/main/trunk/; revision=13769
* Fix broken reference to _graph_trees.Zac Medico2009-07-031-1/+1
| | | | svn path=/main/trunk/; revision=13763
* Fix broken references to depgraph._dynamic_config and _frozen_config inZac Medico2009-07-011-10/+11
| | | | | | calc_depclean(). svn path=/main/trunk/; revision=13754
* Use clear_caches() to free memory inside action_depclean().Zac Medico2009-06-261-2/+1
| | | | svn path=/main/trunk/; revision=13700