summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Bug #237526 - Use portage.util.grablines() for exception handling whenZac Medico2008-09-131-14/+5
| | | | | | reading the unread file. svn path=/main/trunk/; revision=11510
* Define __all__ and remove unused imports found by pyflakes.Zac Medico2008-09-131-3/+6
| | | | svn path=/main/trunk/; revision=11509
* Move the world file update code out of update_config_files() since it shouldZac Medico2008-09-132-14/+16
| | | | | | not be relative to PORTAGE_CONFIGROOT. Thanks to grobian for reporting. svn path=/main/trunk/; revision=11508
* Adjust StaticFileSet._validate() to allow set tokens, so that sets can containZac Medico2008-09-031-1/+1
| | | | | | other sets. svn path=/main/trunk/; revision=11486
* Adjust EMakeParallelDisabled.re to require at least one space after emake.Zac Medico2008-09-011-1/+1
| | | | svn path=/main/trunk/; revision=11482
* Check for calls to the deprecated bindnow-flags function. Thanks to DiegoZac Medico2008-08-312-1/+8
| | | | | | "Flameeyes" Pettenò for the suggestion. svn path=/main/trunk/; revision=11481
* Add a warning for emake -j1 calls which disable parallelization. Thanks toZac Medico2008-08-312-1/+9
| | | | | | Diego "Flameeyes" Pettenò for the suggestion. svn path=/main/trunk/; revision=11480
* Add support for FEATURES="protect-owned" which is identical to theZac Medico2008-08-301-4/+10
| | | | | | | | | | | | | | | | | | collision-protect feature except that files may be overwritten if they are not explicitly listed in the contents of a currently installed package. This is particularly useful on systems that have lots of orphan files that have been left behind by older versions of portage that did not support the unmerge-orphans feature. The additional tolerance makes this feature more suitable than collision-protect for being enabled by default. In order to ensure smooth operation of protect-owned in all cases, we also have to set COLLISION_IGNORE="/lib/modules" since files inside this directory are never unmerge. By enabling protect-owned by default, users are protected from problems that may occur due interactions with file collisions and the unmerge-orphans feature which is also enabled by default. svn path=/main/trunk/; revision=11479
* In dep_zapdeps(), add a new choice category for choices that have packagesZac Medico2008-08-301-2/+4
| | | | | | | | | | | | | | | | | that aren't yet installed but have been added to the graph. This category is given lower priority that the category for packages that are already installed. This helps dep_zapdeps() avoid making choices in some cases that would result in an unsolvable circular dependency. Thanks to Diego "Flameeyes" Pettenò for reporting a circular dependency issue involving that java overlay which is solved by this patch. The particular issue was triggered when attempting to install dev-java/icedtea6 for the first time. A circular dependency between dev-java/eclipse-ecj-3.2.2-r1 and dev-java/icedtea6-1.2 occured since icedtea6 was chosen to satisfy the jdk dependency of eclipse-ecj, even though sun-jdk-1.6.0.07 was already installed and capable of satisfying the dependency. This patch solves the issue by causing sun-jdk to be properly selected to satisfy the jdk dependency of eclipse-ecj. svn path=/main/trunk/; revision=11478
* When reloading the emerge config due to global updates in action_sync(),Zac Medico2008-08-271-0/+1
| | | | | | | | correctly update the local root_config reference. This should fix a KeyError: 'porttree' exception that's been reported to be triggered after --sync. svn path=/main/trunk/; revision=11475
* Revert recent changes to _ObjectKey.__eq__() since it's probably a bug ifZac Medico2008-08-251-5/+0
| | | | | | the wrong type is compared for equality anyway. svn path=/main/trunk/; revision=11474
* Fix _ObjectKey.__eq__() to account for potential hash collisions that wouldZac Medico2008-08-241-5/+6
| | | | | | break dict behavior. Thanks to Lucian Poston for spotting this. svn path=/main/trunk/; revision=11473
* Prevent [None] in repo display. Thanks to grobian.Zac Medico2008-08-241-1/+1
| | | | svn path=/main/trunk/; revision=11470
* * Fix broken _ObjectKey.__eq__() logic from previous commit.Zac Medico2008-08-241-3/+7
| | | | | | * Define _ObjectKey.__slots__ to save memory. svn path=/main/trunk/; revision=11467
* Avoid possible AttributeError raised from _ObjectKey.__eq__().Zac Medico2008-08-241-0/+2
| | | | svn path=/main/trunk/; revision=11466
* More LinkageMap enhancments from Lucian Poston:Zac Medico2008-08-231-58/+93
| | | | | | | * Added _ObjectKey helper class to LinkageMap. (commit eac5528887656abec65fc3a825506187397482e4) * Minor change to docstrings. (commit adde422145d81f25b4024eac1e78b80e1b4a4531) svn path=/main/trunk/; revision=11455
* Add a new src_prepare phase function which is called in-between src_unpackZac Medico2008-08-233-8/+19
| | | | | | | and src_configure (and bump EAPI to 2_pre3). Thanks to Ciaran McCreesh for the suggestion. svn path=/main/trunk/; revision=11454
* Fix isprotected() call in dblink._collision_protect() to properly accountZac Medico2008-08-221-1/+2
| | | | | | for $ROOT. svn path=/main/trunk/; revision=11452
* Use shlex.split() to split CONFIG_PROTECT and CONFIG_PROTECT_MASK.Zac Medico2008-08-221-2/+2
| | | | svn path=/main/trunk/; revision=11450
* For consistency, show [0] in the repo display instead of suppressing it. NowZac Medico2008-08-221-16/+38
| | | | | | | | the repo display and [0] will only be suppressed when [0] is all that would show for every package. Thanks to Joe Peterson <lavajoe@g.o> for the suggestion. svn path=/main/trunk/; revision=11449
* Update comment, from Lucian Poston's git repo.Zac Medico2008-08-221-1/+4
| | | | svn path=/main/trunk/; revision=11448
* Optimize LinkageMap to use tuples of device and inode numbers from statZac Medico2008-08-221-166/+264
| | | | | | | | | | | | | | calls, instead of paths from realpath, as unique keys for identification of files. This is the same approach used by dblink.isowner() for cases in which path comparison fails due to symlinks. Thanks to Lucian Poston <lucianposton@gmail.com> for submitting this patch (along with the missing-rebuild package set which I haven't merged yet). These patches are hosted in the following location: http://repo.or.cz/w/revdep-rebuild-reimplementation.git?a=tree;h=refs/heads/rc3;hb=refs/heads/rc3 svn path=/main/trunk/; revision=11447
* Fix typo in "directory" spelling. Thanks to Ofer Wald in bug #219957.Zac Medico2008-08-211-1/+1
| | | | svn path=/main/trunk/; revision=11446
* Fix spelling of overriding for bug #235250.Zac Medico2008-08-201-1/+1
| | | | svn path=/main/trunk/; revision=11443
* Fix dep_wordreduce() so that it doesn't cancel out blocker atoms that happenZac Medico2008-08-201-1/+3
| | | | | | to be matched by package.provided. svn path=/main/trunk/; revision=11442
* Make dblink call back to the scheduler for "clean" and "cleanrm" phases, toZac Medico2008-08-202-7/+18
| | | | | | handle output redirection. Thanks to Arfrever for reporting. svn path=/main/trunk/; revision=11441
* Make sure EBUILD_PHASE is properly unset when calling misc-functions.sh.Zac Medico2008-08-202-0/+3
| | | | svn path=/main/trunk/; revision=11440
* When in background mode, redirect "adjusting permissions" messages forZac Medico2008-08-192-26/+67
| | | | | | | features directories like CCACHE_DIR and DISTCC_DIR. Thanks to Arfrever for reporting. svn path=/main/trunk/; revision=11439
* The following error is known to occur with Linux kernel versionsZac Medico2008-08-181-1/+19
| | | | | | | | | | | | | | | less than 2.6.24: select.error: (4, 'Interrupted system call') This error has been observed after a SIGSTOP, followed by SIGCONT. Treat it similar to EAGAIN if timeout is None, otherwise just return without any events. Thanks to Jeremy Olexa <darkside@g.o> for reporting and testing this patch. svn path=/main/trunk/; revision=11436
* * 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