summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* * Truncate status display output when necessary to avoid line overflow andZac Medico2008-08-181-3/+24
| | | | | | | | unwanted terminal scroll. * When the load average goes above 10, save space by showing fewer decimal places in the output. svn path=/main/trunk/; revision=11434
* Don't assume that the "world" set is an instance of WorldSet, allowing theZac Medico2008-08-181-13/+33
| | | | | | user to substitute some other set type if desired. svn path=/main/trunk/; revision=11433
* Fix atom -> str breakage in StaticFileSet.write().Zac Medico2008-08-181-3/+3
| | | | svn path=/main/trunk/; revision=11432
* For consistency, make get_open_fds() return a plain iterator in any case,Zac Medico2008-08-151-2/+2
| | | | | | rather than return a list in some cases. svn path=/main/trunk/; revision=11418
* Use a list comprehension instead of strange map() usage which yields oddZac Medico2008-08-151-1/+2
| | | | | | results when fed to the py3k converter. Thanks to René 'Necoro' Neumann. svn path=/main/trunk/; revision=11417
* For py3k compatibility, replace map() call with a normal for loop. Thanks toZac Medico2008-08-151-1/+2
| | | | | | Ali Polatel <hawking@g.o>. svn path=/main/trunk/; revision=11416
* Pass atom instances into action_depclean() instead of the plain strings.Zac Medico2008-08-151-2/+4
| | | | svn path=/main/trunk/; revision=11415
* Validate atoms from command line args before calling action_depclean().Zac Medico2008-08-151-0/+28
| | | | svn path=/main/trunk/; revision=11414
* In order to avoid an unhandled InvalidAtom exception, validate atoms fromZac Medico2008-08-151-0/+14
| | | | | | | command line arguments before passing them to unmerge(). Thanks to Cardoe for reporting. svn path=/main/trunk/; revision=11413
* * Replace vartree.dep_match() call with normal dbapi.match() call.Zac Medico2008-08-151-3/+1
| | | | | | | * Don't silently swallow unexpected KeyError exceptions from dbapi.match() inside unmerge(). svn path=/main/trunk/; revision=11412
* When a build fails, generate a status message showing which packageZac Medico2008-08-141-18/+46
| | | | | | | | | | | | failed and the path of the relevant log file if available. Thanks to _neuron_ for the suggestion. Here is some sample output: >>> Emerging (1 of 1) foo-bar/baz-1.0 >>> Failed to emerge foo-bar/baz-1.0, Log file: >>> '/var/log/portage/foo-bar:baz-1.0:20080814-202327.log' svn path=/main/trunk/; revision=11411
* * Fix parse_metadata_use() to raise ParseError instead of the ExpatErrorZac Medico2008-08-141-1/+17
| | | | | | | | that was reported by grobian. * Define __all__. svn path=/main/trunk/; revision=11407
* The fpformat module is deprecated and will be removed in py3k.Zac Medico2008-08-141-2/+1
| | | | | | | The % string interpolation operator should be used instead. Thanks to Ali Polatel <hawking@g.o> for this patch. svn path=/main/trunk/; revision=11406
* Make Scheduler._choose_pkg() parallelize more aggressively in cases whenZac Medico2008-08-141-5/+19
| | | | | | | | | | | | | | | it will not result in a less optimal build order. This works by modifying the behavior of Scheduler._dependent_on_scheduled_merges() so that two cases of dependence are ignored: * A given dependency will be merged later anyway (due to dep cycles) and therefore delaying the merge of the parent package will not result in a more optimal build order. * A given dependency is an "uninstall" operation and it also is not a direct dependency, therefore it should be irrelevant to build order optimization. svn path=/main/trunk/; revision=11405
* Bug #234478 - Fix config._getMissingLicenses() to only access USE whenZac Medico2008-08-121-2/+8
| | | | | | | LICENSE is conditional since otherwise USE hasn't necessarily been calculated. svn path=/main/trunk/; revision=11401
* Disable "waiting for lock" messages when in background mode. Thanks to ThargorZac Medico2008-08-122-1/+11
| | | | | | for reporting. svn path=/main/trunk/; revision=11400
* Fix ebuild(1) so that src_configure is only called for EAPIs for which itZac Medico2008-08-111-0/+6
| | | | | | is supported. svn path=/main/trunk/; revision=11399
* Entirely disable the src_configure phase from the python side for EAPI valuesZac Medico2008-08-111-1/+7
| | | | | | | | for which it's not supported. This avoids pointless spawning of ebuild.sh and also avoids having bashrc called during an invalid phase as reported by Arfrever. svn path=/main/trunk/; revision=11398
* Increase Scheduler._job_delay_max to 10 seconds.v2.2_rc7Zac Medico2008-08-101-1/+1
| | | | svn path=/main/trunk/; revision=11395
* For pkg_config and pkg_info, add respective "config" and "info" values toZac Medico2008-08-101-1/+1
| | | | | | EBUILD_PHASES. svn path=/main/trunk/; revision=11394
* When testing userpriv write access in $DISTDIR, redirect the 'permissionZac Medico2008-08-101-1/+1
| | | | | | denied' error message to /dev/null. svn path=/main/trunk/; revision=11393
* Remove unnecessary dict.keys() call.Zac Medico2008-08-101-1/+1
| | | | svn path=/main/trunk/; revision=11392
* Remove most references to Package.metadata_keys and replace them withZac Medico2008-08-101-20/+18
| | | | | | approriate keys for the given package type. svn path=/main/trunk/; revision=11386
* Fix typo.Zac Medico2008-08-101-1/+1
| | | | svn path=/main/trunk/; revision=11382
* Remove INHERITED from the vardbapi aux_get cache since it's not really thatZac Medico2008-08-102-7/+8
| | | | | | | | useful (@live-rebuild currently pulls INHERITED from the highest visible ebuild). Also adjust keys used to pull metadata for Package instances, so that INHERITED won't get pulled from the vardbapi anymore. svn path=/main/trunk/; revision=11381
* Make the scheduler's job delay ramp up faster by increasing the factorZac Medico2008-08-101-2/+3
| | | | | | to 1.0 and adding an exponent of 1.5. svn path=/main/trunk/; revision=11378
* Add write_contents() and tar_contents() functions to __all__.Zac Medico2008-08-091-1/+2
| | | | svn path=/main/trunk/; revision=11376
* * Use shlex.split() for splitting COLLISION_IGNORE.Zac Medico2008-08-091-1/+5
| | | | | | * Define __all__. svn path=/main/trunk/; revision=11375
* Don't use "dir" for a variable name since it's also a builtin.Zac Medico2008-08-091-4/+4
| | | | svn path=/main/trunk/; revision=11372
* Escape use flags before compiling regular expressions from them. ThanksZac Medico2008-08-092-4/+12
| | | | | | to pchrist for reporting. svn path=/main/trunk/; revision=11364
* When calling dbaip.aux_get() inside depgraph._select_package(), only pull theZac Medico2008-08-091-2/+1
| | | | | | | keys that are cached. This avoids triggering useless cache pulls for INHERITED from the bindbapi. svn path=/main/trunk/; revision=11360
* Increase Scheduler._job_delay_factor from 0.5 to 0.75 so that the delayZac Medico2008-08-091-1/+1
| | | | | | | ramps up a little quicker, since the current value appears to be too weak in some cases. svn path=/main/trunk/; revision=11359
* Add new LinkageMap.listBrokenBinaries() and listProviders() methods. ThanksZac Medico2008-08-081-0/+152
| | | | | | | | to Lucian Poston <lucianposton@gmail.com> for submitting this patch along with the missing-rebuild package set posted on the gentoo-portage-dev mailing list. svn path=/main/trunk/; revision=11357
* Fix broken reference to os.path.realpath() inside LinkageMap.getSoname().Zac Medico2008-08-081-1/+1
| | | | svn path=/main/trunk/; revision=11356
* In LinkageMap.rebuild(), filter empty strings that may be returned from splitZac Medico2008-08-081-2/+4
| | | | | | | calls when processing the "needed" and "path" entries. Thanks to Lucian Poston for reporting. svn path=/main/trunk/; revision=11355
* Handle missing ipv6 support (branches/prefix r11347).Zac Medico2008-08-081-1/+1
| | | | svn path=/main/trunk/; revision=11348
* * Fix the default() implementation so that it maps the ebuild argument toZac Medico2008-08-082-3/+11
| | | | | | | | | | | the correct phase function. * Add --exclude-init-phases option to save_ebuild_env() for filtering out unnecessary functions and variables when creating environment.bz2. * Add support for default() and default_* functions that die in all ebuild phases so that improper use of these functions is quickly discovered. svn path=/main/trunk/; revision=11346
* Shorten the scheduler status display in the xterm title by removing allZac Medico2008-08-081-1/+1
| | | | | | consecutive spaces. svn path=/main/trunk/; revision=11345
* In order to properly preserve --jobs and --load-average settings for --resumeZac Medico2008-08-071-3/+8
| | | | | | | | operations, store resume options in the mtimedb as a dict instead of a list. The dict type is supported in >=portage-2.1.3_rc8 (2.1.4.4 is current stable) so people switching between stable/unstable will be fine. svn path=/main/trunk/; revision=11343
* Fix a bug in vardbapi.removeFromContents() which sometimes prevents theZac Medico2008-08-071-2/+3
| | | | | | CONTENTS from being updated when it should. svn path=/main/trunk/; revision=11341
* In order to conserve some space, make _setitem() skip writing keys for whichZac Medico2008-08-071-0/+2
| | | | | | the value is empty. svn path=/main/trunk/; revision=11340
* Make doebuild() display manifest verification failures for each corruptZac Medico2008-08-051-29/+57
| | | | | | ebuild rather than just the first one. svn path=/main/trunk/; revision=11332
* When there is no build log to display, it means that fetch failed, soZac Medico2008-08-051-15/+51
| | | | | | display the fetch log in that case. svn path=/main/trunk/; revision=11331
* Remove unused parse_use_local_desc() function.Zac Medico2008-08-051-22/+0
| | | | svn path=/main/trunk/; revision=11330
* Bug #233735 - Add support for src_configure and default_* functions withZac Medico2008-08-043-12/+18
| | | | | | | new EAPI=2_pre2. Thanks to Arfrever Frehtes Taifersar Arahesis for the initial patch which I've made a few adjustments to. svn path=/main/trunk/; revision=11327
* Remove code from bug #223447 which is now obsolete due to depclean usingZac Medico2008-08-041-13/+1
| | | | | | the depgraph class. svn path=/main/trunk/; revision=11326
* Make the status display say "Emerging" and "Emerging binary" instead ofZac Medico2008-08-041-2/+2
| | | | | | | "Building" and "Extracting". Thanks to Joe Peterson <lavajoe> for the suggestion (including extra newlines from previous commit). svn path=/main/trunk/; revision=11325
* Insert extra newline before status messages, since that's how it used to be.Zac Medico2008-08-041-1/+2
| | | | svn path=/main/trunk/; revision=11324
* Make dblink.unmerge() succeed even when ebuild phases are unsuccessful becauseZac Medico2008-08-041-6/+6
| | | | | | | the current behavior is even worse (results in orphan files). Thanks to Arfrever for this patch (UnsupportedAPIException hunk by me). svn path=/main/trunk/; revision=11323
* Add a more generic VariableSet to replace the InheritSet and RestrictSetZac Medico2008-08-031-57/+16
| | | | | | | classes. Thanks to Arfrever Frehtes Taifersar Arahesis for this patch from bug #233589 (with some minor adjustments from me). svn path=/main/trunk/; revision=11320