summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Add handling for POLLERR, POLLNVAL, and POLLHUP. Hopefully this solves hung ↵Zac Medico2008-12-231-40/+72
| | | | | | | | | poll calls with defunct ebuild.sh processes, reported on solaris systems by Fabian Groffen <grobian@g.o>. svn path=/main/trunk/; revision=12287
* Register for poll events before forking, in order to avoid potential race ↵Zac Medico2008-12-231-13/+12
| | | | | | | | | | conditions in SpawnProcess._start() and EbuildMetadataPhase._start(). Hopefully this solves hung poll calls with defunct ebuild.sh processes, reported on solaris systems by Fabian Groffen <grobian@g.o>. svn path=/main/trunk/; revision=12285
* When removing entries with duplicate paths inside binarytree.inject(), handleZac Medico2008-12-231-3/+6
| | | | | | path collisions in $PKGDIR/All when CPV is not identical. svn path=/main/trunk/; revision=12282
* Fix typo.Zac Medico2008-12-231-1/+1
| | | | svn path=/main/trunk/; revision=12281
* Bug #252243 - Fix binarytree.prevent_collision() so that it won't create a ↵Zac Medico2008-12-231-6/+17
| | | | | | | | circular symlink if there happens to be a symlink in $PKGDIR/All for some reason. svn path=/main/trunk/; revision=12280
* Simplify the code from bug #218854. Also, ensure that the set of visible ↵Zac Medico2008-12-231-33/+7
| | | | | | | | | | packages thats used by depgraph._iter_atoms_for_pkg() is consistent with the packages that have been selected by depgraph._select_pkg_highest_available(). This should correct potential inconstencies introduced by the package selection changes from bug #252167. svn path=/main/trunk/; revision=12279
* Bug #252167 - If the ebuild no longer exists or it's keywords have been dropped,Zac Medico2008-12-231-8/+27
| | | | | | | reject built instances (installed or binary). If --usepkgonly is enabled, assume that the ebuild status should be ignored. svn path=/main/trunk/; revision=12278
* Remove code from unused config.load_infodir() method and issue a deprecationZac Medico2008-12-221-67/+3
| | | | | | warning if it's called. svn path=/main/trunk/; revision=12275
* Add support for the new DEFINED_PHASES metadata key which is automatically ↵Zac Medico2008-12-213-3/+3
| | | | | | | | | generated from the set of phase functions that are defined by the ebuild and any eclasses it may have inherited. svn path=/main/trunk/; revision=12273
* Fix --clean <atom> so that it considers all packages within a given slot whenZac Medico2008-12-211-1/+16
| | | | | | | | it's deciding which packages to keep, rather than just considering the ones matched by the given atom. Any packages not matching the given atom are protected from being unmerged. Thanks to Mart Raudsepp <leio@g.o> for reporting. svn path=/main/trunk/; revision=12272
* Update --depclean 'unsatisfied deps' message to recommend the same emerge updateZac Medico2008-12-211-2/+2
| | | | | | | command that's recommended earlier. Thanks to Jeremy Olexa <darkside@g.o> for reporting. svn path=/main/trunk/; revision=12271
* Remove the TaskScheduler.run() method since the constructor replaces it withZac Medico2008-12-211-3/+0
| | | | | | the QueueScheduler.run() method. svn path=/main/trunk/; revision=12270
* Adjust the EbuildNestedDie pattern so that it only matches when ( is surroundedv2.2_rc18Zac Medico2008-12-201-1/+1
| | | | | | | | by whitespace. This filters out false positives triggered by sed expressions in net-analyzer/amap-5.2-r1 and media-libs/libsndfile-1.0.17-r1. Thanks to Diego Pettenò <flameeyes@g.o> for reporting. svn path=/main/trunk/; revision=12265
* Simplify the InheritAutotools pattern by using \b to match word boundaries.Zac Medico2008-12-201-2/+2
| | | | svn path=/main/trunk/; revision=12264
* Bug #251591 - Adjust the InheritAutotools pattern to treat more things ↵Zac Medico2008-12-201-2/+2
| | | | | | | | similar to whitespace. Now it recognizes escaped newlines, || operators, and && operators. svn path=/main/trunk/; revision=12260
* Bug #251616 - Inside _check_build_log(), remove unnecessary .* patterns from ↵Zac Medico2008-12-191-3/+3
| | | | | | | | | | regular expressions. These patterns trigger extreme performance issues when matched against extremely large lines such as those produced by dev-util/bzr test suite when it uses \r to rewrite the same line thousands of times. svn path=/main/trunk/; revision=12259
* Fix DependencyArg.__str__() to ensure that str type is always returned.Zac Medico2008-12-191-1/+1
| | | | svn path=/main/trunk/; revision=12258
* Inside display_preserved_libs(), filter out consumers that belong to theZac Medico2008-12-171-4/+5
| | | | | | same package as the provider only if those consumers are also preserved. svn path=/main/trunk/; revision=12257
* Inside display_preserved_libs(), filter out any consumers that belong to theZac Medico2008-12-151-1/+7
| | | | | | same package as the provider. svn path=/main/trunk/; revision=12253
* Bug #250902 - Inside dblink._find_unused_preserved_libs(), show a warningZac Medico2008-12-141-1/+8
| | | | | | | instead of raising a KeyError if the preserved libs registry contains a symlink that points to a lib which is not preserved. svn path=/main/trunk/; revision=12252
* Bug #250902 - Inside dblink._find_libs_to_preserve(), prevent symlinks fromZac Medico2008-12-141-1/+16
| | | | | | | being erroneously preserved by themselves when the old instance installed symlinks that the new instance does not install. svn path=/main/trunk/; revision=12251
* Update comment about resume opts stored as dict starting with 2.1.6_rc1.Zac Medico2008-12-121-1/+1
| | | | svn path=/main/trunk/; revision=12246
* Add a new FEATURES=test-fail-continue value which causes ebuild executionZac Medico2008-12-122-0/+9
| | | | | | | to continue after the test phase has failed. Thanks to Diego Pettenò <flameeyes@g.o> for the suggestion. svn path=/main/trunk/; revision=12214
* Fix --pretend logic in Binpkg some more.Zac Medico2008-12-121-2/+2
| | | | svn path=/main/trunk/; revision=12213
* Fix --getbinpkg to behave as expected with --pretend and --fetchonly.Zac Medico2008-12-121-6/+20
| | | | svn path=/main/trunk/; revision=12212
* Fix breakage in stale metadata logic inside binarytree._poplulate().Zac Medico2008-12-121-3/+4
| | | | svn path=/main/trunk/; revision=12211
* When using the old binhost protocol, comparison with the remoteZac Medico2008-12-121-10/+6
| | | | | | | | package isn't supported, so the local package is always preferred even if --getbinpkgonly is enabled. Simplify bintree.isremote() so it works the same way regardless of which protocol is used. svn path=/main/trunk/; revision=12209
* Fix old-style binhost code binarytree.digestCheck() will use local digests whenZac Medico2008-12-121-4/+9
| | | | | | a local package overrides a remote one. svn path=/main/trunk/; revision=12208
* Fix --getbinpkgonly behavior so that binaries from the remote server areZac Medico2008-12-122-6/+48
| | | | | | | preferred over local packages if they are not identical. Thanks to Lance Albertson <ramereth@g.o> for reporting. svn path=/main/trunk/; revision=12207
* Don't warn about missing repo_name for $PORTDIR when it happens to be empty.Zac Medico2008-12-111-0/+6
| | | | svn path=/main/trunk/; revision=12206
* Add --sync support for `git pull`, and also add a failsafe to prevent rsyncZac Medico2008-12-111-0/+27
| | | | | | | from being called if $PORTDIR appears to be under revision control. Thanks to Daniel Robbins for the initial patch. svn path=/main/trunk/; revision=12205
* Make BinpkgFetcher synchronize the local timestamp of the downloaded fileZac Medico2008-12-111-0/+24
| | | | | | with the remote file, if the fetcher hasn't done it automatically. svn path=/main/trunk/; revision=12201
* Remove ManifestEntry.__cmp__() since it's not needed and py3k won't use it.Zac Medico2008-12-101-4/+0
| | | | svn path=/main/trunk/; revision=12200
* For py3k compat, remove Atom.__cmp__() and use str.__lt__() instead.Zac Medico2008-12-101-10/+2
| | | | svn path=/main/trunk/; revision=12199
* Make Binpkg clean the build dir immediately after locking it. This ensuresZac Medico2008-12-101-0/+6
| | | | | | that a new PORTAGE_LOG_FILE is created. svn path=/main/trunk/; revision=12198
* Make BinpkgVerifier rename files that fail verification, similar to howZac Medico2008-12-101-0/+6
| | | | | | distfiles are automatically renamed. svn path=/main/trunk/; revision=12197
* Make the Binpkg class handle fetch logging similar to how EbuildBuild does,Zac Medico2008-12-101-20/+18
| | | | | | | directing output to PORTAGE_LOG_FILE instead of emerge-fetch.log which is only used for prefetchers now. svn path=/main/trunk/; revision=12196
* Verify binary packages even when not in "strict" mode (normal distfiles areZac Medico2008-12-101-2/+1
| | | | | | also verified in this case). svn path=/main/trunk/; revision=12195
* Create a BinpkgPrefetcher composite task to handle fetch, verification,Zac Medico2008-12-101-3/+36
| | | | | | and injection. svn path=/main/trunk/; revision=12194
* When the Binpkg class has fetched a package in --fetchonly mode, wait untilZac Medico2008-12-101-5/+7
| | | | | | after the package is verified and injected before returning. svn path=/main/trunk/; revision=12193
* urlparse.urljoin() only works correctly with recognized protocols andZac Medico2008-12-101-1/+4
| | | | | | | requires the base url to have a trailing slash, so join PORTAGE_BINHOST manually. Thanks to Lance Albertson <ramereth@g.o> for reporting. svn path=/main/trunk/; revision=12192
* When processing output from the "depend" phase, use the number of lines asZac Medico2008-12-102-5/+20
| | | | | | a sanity check so that bash's returncode doesn't have to be trusted. svn path=/main/trunk/; revision=12191
* In digestgen(), don't call fetch for files that already exist but haveZac Medico2008-12-091-3/+3
| | | | | | invalid zero-size in the manifest. svn path=/main/trunk/; revision=12188
* Simplify the code from bug #250166.Zac Medico2008-12-091-28/+15
| | | | svn path=/main/trunk/; revision=12187
* Bug #250166 - To avoid accidental regeneration of digests with the incorrectZac Medico2008-12-091-1/+22
| | | | | | | | | | files (such as partially downloaded files), trigger the fetch code if the file exists and it's size doesn't match the current manifest entry. If there really is a legitimate reason for the digest to change, `ebuild --force digest` can be used to avoid triggering this code (or else the old digests can be manually removed from the Manifest). svn path=/main/trunk/; revision=12186
* When in --debug mode, make the depgraph call self.digraph.debug_print() toZac Medico2008-12-092-5/+13
| | | | | | | | display the final digraph state. This should help when troubleshooting problems with blockers that don't resolve automatically, by making it easier to see what pulled in unwanted packages. svn path=/main/trunk/; revision=12185
* For py3k compat, remove Package.__cmp__() and related cmp() function call.Zac Medico2008-12-091-8/+1
| | | | svn path=/main/trunk/; revision=12183
* Fix deprecated_profile_check() to account for PORTAGE_CONFIGROOT. Thanks toZac Medico2008-12-082-4/+9
| | | | | | Jeremy Olexa <darkside@g.o> for the initial patch. svn path=/main/trunk/; revision=12181
* Avoid TypeError in BlockerCache.__iter__() that's triggered withZac Medico2008-12-081-0/+3
| | | | | | FEATURES=python-trace. Thanks to Fabian Groffen <grobian@g.o> for reporting. svn path=/main/trunk/; revision=12180
* Bug #250212 - Add a new 'upstream.workaround' qa category, and use it forZac Medico2008-12-082-2/+2
| | | | | | | the EMakeParallelDisabled check. Thanks to Mike Auty <ikelos@g.o> for this patch. svn path=/main/trunk/; revision=12179