summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Updating find_updated_config_files function descriptionMounir Lamouri2009-07-301-4/+4
| | | | svn path=/main/trunk/; revision=13860
* Rename get_updated_config_files() to find_updated_config_files() and makeZac Medico2009-07-302-10/+7
| | | | | | it an iterator of tuples. svn path=/main/trunk/; revision=13859
* Add get_updated_config_files in portage APIMounir Lamouri2009-07-302-59/+78
| | | | | | | 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
* Bug #278895 - Make ebuild.sh clean up orphaned processes that may have beenZac Medico2009-07-301-0/+1
| | | | | | | | | | | left behind by ebuild phases. This works by using setsid to create a new login session for the ebuild.sh process, and `kill -s SIGHUP 0` to send a SIGHUP signal to all processes in the session. The setsid is currently not done on the python side since that would cause the sandbox process in the session, and sandbox produces a warning message if it catches a SIGHUP signal. svn path=/main/trunk/; revision=13856
* Fix depgraph._show_missed_update() to keep each $ROOT separate.Zac Medico2009-07-291-4/+8
| | | | svn path=/main/trunk/; revision=13855
* Account for $ROOT inside depgraph._show_missed_update_unsatisfied_dep().Zac Medico2009-07-291-4/+3
| | | | svn path=/main/trunk/; revision=13854
* Remove redundant loop inside depgraph._show_missed_update_slot_conflicts().Zac Medico2009-07-281-12/+12
| | | | svn path=/main/trunk/; revision=13853
* When backtracking due to an unsatisfied dependency, show a normal unsatisfiedZac Medico2009-07-281-3/+49
| | | | | | | dependency message for the given atom. Thanks to Thomas Sachau <tommy@gentoo.org> for reporting. svn path=/main/trunk/; revision=13852
* Fix --onlydeps breakage. Thanks to Arfrever for reporting.Zac Medico2009-07-251-1/+1
| | | | svn path=/main/trunk/; revision=13851
* Bug #270040 - Make repoman parse the categories file from the overlay.Zac Medico2009-07-221-1/+5
| | | | svn path=/main/trunk/; revision=13850
* 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
* Always pass encodings='utf_8' to codecs.open(), since otherwise it canZac Medico2009-07-204-10/+13
| | | | | | | | | | return non-unicode strings (at least in some cases, observed with python-2.6.2). Don't use unicode in portage.util.getconfig() for now, since shlex doesn't seem to support it (spurious \0 characters). If we use unicode for config variables, it breaks shlex.split() calls on those variables due to the same issue (spurious \0 characters). svn path=/main/trunk/; revision=13845
* FEATURES=unmerge-logsZac Medico2009-07-201-0/+10
| | | | | | | | | Keep logs from successful unmerge phases. This is relevant only when PORT_LOGDIR is set. Thanks to Diego Pettenò <flameeyes@gentoo.org> for the suggestion. svn path=/main/trunk/; revision=13844
* Remove empty log files inside dblink.unmerge(). Thanks to Diego PettenòZac Medico2009-07-201-0/+12
| | | | | | <flameeyes@gentoo.org> for reporting. svn path=/main/trunk/; revision=13843
* Skip Blocker instances inside _add_prefetchers().Zac Medico2009-07-201-1/+2
| | | | svn path=/main/trunk/; revision=13842
* Move mtimedb resume list code from action_build() toZac Medico2009-07-202-8/+9
| | | | | | Scheduler._save_resume_list(). svn path=/main/trunk/; revision=13841
* Use a lazy reference to sys.stdout, in case the API consumer hasZac Medico2009-07-201-3/+8
| | | | | | temporarily overridden stdout. svn path=/main/trunk/; revision=13840
* Make portage.listdir() and dbapi.cp_list() return unicode.Zac Medico2009-07-203-1/+8
| | | | svn path=/main/trunk/; revision=13839
* Fix Scheduler bug:Mounir Lamouri2009-07-201-0/+2
| | | | | | the scheduler was adding prefetcher even for uninstall tasks svn path=/main/trunk/; revision=13838
* In grablines(), specify encoding=sys.getdefaultencoding() in the codecs.open()Zac Medico2009-07-201-2/+3
| | | | | | | | parameters, since otherwise readlines doesn't return unicode (at least in some cases, observed with python-2.6.2). Also, fix grabfile() to return unicode when it normalizes whitespace. svn path=/main/trunk/; revision=13837
* Use codecs.open for unicode support in FileLoader.load().Zac Medico2009-07-201-1/+2
| | | | svn path=/main/trunk/; revision=13836
* In _check_manifests(), skip uninstall operations.Zac Medico2009-07-191-0/+3
| | | | svn path=/main/trunk/; revision=13835
* Use readlines() to optimize performance. Thanks to Marat RadchenkoZac Medico2009-07-192-2/+1
| | | | | | <slonopotamusorama@gmail.com> for this patch from bug #276813. svn path=/main/trunk/; revision=13834
* For unsatisfied USE dependencies, do not backtrack if only USE have to changeZac Medico2009-07-161-4/+16
| | | | | | | in order to be satisfied. Thanks to Thomas Sachau <tommy@gentoo.org> fo reporting. svn path=/main/trunk/; revision=13832
* fix up spacing, remove commented out code, fix copyright (sort of ↵Fabian Groffen2009-07-131-48/+48
| | | | | | see-if-I-can-commit test) svn path=/main/trunk/; revision=13824
* Optimize USE_EXPAND -> USE code inside config.setcpv(). Thanks toZac Medico2009-07-121-19/+29
| | | | | | | Marat Radchenko <slonopotamusorama@gmail.com> for the initial patch from bug #276813. svn path=/main/trunk/; revision=13823
* Allow search and depgraph to avoid spinner by using spinner=NoneMounir Lamouri2009-07-122-11/+19
| | | | svn path=/main/trunk/; revision=13822
* Remove leading slash from appropriate paths inside portage.const, so thatZac Medico2009-07-127-29/+37
| | | | | | | 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
* In depgraph._show_missed_update(), don't show installed packages since weZac Medico2009-07-121-0/+4
| | | | | | only want to show available updates. svn path=/main/trunk/; revision=13819
* Move the backtracking code from action_build() to a new backtrack_depgraph()Zac Medico2009-07-122-38/+46
| | | | | | function. svn path=/main/trunk/; revision=13818
* Eliminate duplicate code inside depgraph._show_missed_update().Zac Medico2009-07-111-14/+9
| | | | svn path=/main/trunk/; revision=13817
* Bug #137562 - Implement backtracking for missing dependencies. Thanks toZac Medico2009-07-111-0/+25
| | | | | | | Sebastian Mingramm (few) <s.mingramm@gmx.de> for the initial patch which only needed minor changes. svn path=/main/trunk/; revision=13816
* Optimize USE_EXPAND -> USE code inside config.setcpv(). Thanks toZac Medico2009-07-111-11/+4
| | | | | | | Marat Radchenko <slonopotamusorama@gmail.com> for this patch from bug #276813. svn path=/main/trunk/; revision=13815
* Assign 'cfgprot' before referencing it. Reported by Thomas Sachau.Arfrever Frehtes Taifersar Arahesis2009-07-111-1/+1
| | | | svn path=/main/trunk/; revision=13814
* Allow --deep to take an optional integer parameter, to specify how deep itZac Medico2009-07-094-15/+49
| | | | | | | should go. Also make --update so it no longer implies the equivalent of --deep=1. To get the old --update behavior, use --update --deep=1. svn path=/main/trunk/; revision=13812
* Tweak arguments for <python-2.6 compat.Zac Medico2009-07-091-2/+2
| | | | svn path=/main/trunk/; revision=13811
* Make -j argument handling more generic, so it's easy to add similar argumentsZac Medico2009-07-091-26/+60
| | | | | | (planning to add support for integer -D/--deep arguments). svn path=/main/trunk/; revision=13810
* Use a dict for depgraph params, so we can use it to store key/value pairsZac Medico2009-07-092-13/+13
| | | | | | and fix the depgraph so it doesn't use emerge options directly. svn path=/main/trunk/; revision=13809
* Add a --debug warning message inside _add_pkg in case a potentially infiniteZac Medico2009-07-081-0/+12
| | | | | | backtracking loop is detected (it should never happen). svn path=/main/trunk/; revision=13808
* Document the --selective option.Zac Medico2009-07-081-0/+6
| | | | svn path=/main/trunk/; revision=13807
* Fix --selective so it works.Zac Medico2009-07-081-1/+2
| | | | svn path=/main/trunk/; revision=13806
* Bug #276957 - Fix dropped "in graph" choice for runtime deps inside dep_zapdeps.Zac Medico2009-07-071-0/+2
| | | | svn path=/main/trunk/; revision=13805
* Shorten the preserved libs message when in --quiet mode. Thanks to SebastianZac Medico2009-07-071-4/+10
| | | | | | Mingramm (few) <s.mingramm@gmx.de> for this patch. svn path=/main/trunk/; revision=13803
* Bug #276866 - --binpkg-respect-use < y | n >Zac Medico2009-07-073-2/+25
| | | | | | | | | Tells emerge to ignore binary packages if their use flags don't match the current configuration. (default: ´n´) Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch (small tweaks by me). svn path=/main/trunk/; revision=13802
* Optimize dbapi._iter_match_use() so that it shares a single compiled regexZac Medico2009-07-062-8/+7
| | | | | | | | for all implicit iuse checks. This avoids lots of expensibe re.compile() calls. Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for the initial patch. svn path=/main/trunk/; revision=13801
* Bug #273622 - Add pkg_pretend support for the ebuild(1) command (emergeZac Medico2009-07-061-1/+5
| | | | | | | support not implemented yet). Thanks to Markus Meier <maekke@gentoo.org> for this patch. svn path=/main/trunk/; revision=13799
* Use PackageSet.findAtomForPackage() when matching the existing node againstZac Medico2009-07-061-1/+4
| | | | | | the atom inside _select_pkg_highest_available_imp(), for PROVIDE support. svn path=/main/trunk/; revision=13794
* Always exit unsuccessfully if there are any failures.Zac Medico2009-07-061-1/+3
| | | | svn path=/main/trunk/; revision=13793
* Hardcode utf_8 encoding inside _setitem().Zac Medico2009-07-051-3/+2
| | | | svn path=/main/trunk/; revision=13792
* Assume utf_8 encoding in alls reads/writes (unicode handling required for py3k).Zac Medico2009-07-051-3/+6
| | | | svn path=/main/trunk/; revision=13791