portage.git
14 years agoFix broken references to portage._doebuild_manifest_exempt_depend.
Zac Medico [Tue, 2 Mar 2010 20:59:28 +0000 (20:59 -0000)]
Fix broken references to portage._doebuild_manifest_exempt_depend.
(trunk r15451)

svn path=/main/branches/2.1.7/; revision=15660

14 years agoMove cacheddir and listdir to portage.util.listdir. (trunk r15450)
Zac Medico [Tue, 2 Mar 2010 20:59:20 +0000 (20:59 -0000)]
Move cacheddir and listdir to portage.util.listdir. (trunk r15450)

svn path=/main/branches/2.1.7/; revision=15659

14 years agoMake auxdbkeys a tuple instead of a list. (trunk r15449)
Zac Medico [Tue, 2 Mar 2010 20:59:11 +0000 (20:59 -0000)]
Make auxdbkeys a tuple instead of a list. (trunk r15449)

svn path=/main/branches/2.1.7/; revision=15658

14 years agoSplit doebuild and related code to the portage.package.ebuild module.
Zac Medico [Tue, 2 Mar 2010 20:59:00 +0000 (20:59 -0000)]
Split doebuild and related code to the portage.package.ebuild module.
(trunk r15448)

svn path=/main/branches/2.1.7/; revision=15657

14 years agoRemove unused 'expandcache' global variable. (trunk r15447)
Zac Medico [Tue, 2 Mar 2010 20:58:52 +0000 (20:58 -0000)]
Remove unused 'expandcache' global variable. (trunk r15447)

svn path=/main/branches/2.1.7/; revision=15656

14 years agoFix a logic error which causes blockers from installed packages to be
Zac Medico [Tue, 2 Mar 2010 20:58:42 +0000 (20:58 -0000)]
Fix a logic error which causes blockers from installed packages to be
ignored in some cases. Thanks to Brian Dolbec (dol-sen) for reporting.
(trunk r15446)

svn path=/main/branches/2.1.7/; revision=15655

14 years agoAdd missing writmsg import. (trunk r15445)
Zac Medico [Tue, 2 Mar 2010 20:58:31 +0000 (20:58 -0000)]
Add missing writmsg import. (trunk r15445)

svn path=/main/branches/2.1.7/; revision=15654

14 years agoMake the first two positional arguments of digestgen() into keyword arguments
Zac Medico [Tue, 2 Mar 2010 20:58:16 +0000 (20:58 -0000)]
Make the first two positional arguments of digestgen() into keyword arguments
since the first one isn't really needed (when this code is in stable we can
start showing a deprecation warning when the redundant argument is used).
(trunk r15438)

svn path=/main/branches/2.1.7/; revision=15653

14 years agoAdd deprecation warnings for unused digestgen() parameters. (trunk r15437)
Zac Medico [Tue, 2 Mar 2010 20:58:04 +0000 (20:58 -0000)]
Add deprecation warnings for unused digestgen() parameters. (trunk r15437)

svn path=/main/branches/2.1.7/; revision=15652

14 years agoFix "AttributeError: 'module' object has no attribute 'mappings'".
Zac Medico [Tue, 2 Mar 2010 20:57:51 +0000 (20:57 -0000)]
Fix "AttributeError: 'module' object has no attribute 'mappings'".
Also fix some typos. (trunk r15429)

svn path=/main/branches/2.1.7/; revision=15651

14 years agoFix "NameError: global name 'basestring' is not defined" with Python 3.
Zac Medico [Tue, 2 Mar 2010 20:57:38 +0000 (20:57 -0000)]
Fix "NameError: global name 'basestring' is not defined" with Python 3.
(trunk r15428)

svn path=/main/branches/2.1.7/; revision=15650

14 years agoEnable --rebuilt-binaries automatically only when in --usepkgonly or
Zac Medico [Tue, 2 Mar 2010 20:56:37 +0000 (20:56 -0000)]
Enable --rebuilt-binaries automatically only when in --usepkgonly or
--getbinpkgonly mode, since --usepkgonly  behaves better in cases when
the portage tree is not exactly the same revision that was used to
build the packages. (trunk r15427)

svn path=/main/branches/2.1.7/; revision=15649

14 years agoUse lazy import for portage.Manifest. (trunk r15426)
Zac Medico [Tue, 2 Mar 2010 20:56:25 +0000 (20:56 -0000)]
Use lazy import for portage.Manifest. (trunk r15426)

svn path=/main/branches/2.1.7/; revision=15648

14 years agoMove portage.fetch() to portage.package.ebuild.fetch.fetch(). (trunk r15425)
Zac Medico [Tue, 2 Mar 2010 20:56:10 +0000 (20:56 -0000)]
Move portage.fetch() to portage.package.ebuild.fetch.fetch(). (trunk r15425)

svn path=/main/branches/2.1.7/; revision=15647

14 years agoMove portage.config class to portage.package.ebuild.config.config.
Zac Medico [Tue, 2 Mar 2010 20:55:43 +0000 (20:55 -0000)]
Move portage.config class to portage.package.ebuild.config.config.
(trunk r15424)

svn path=/main/branches/2.1.7/; revision=15646

14 years agoMove portage.digraph class to portage.util.digraph.digraph. (trunk r15423)
Zac Medico [Tue, 2 Mar 2010 20:55:29 +0000 (20:55 -0000)]
Move portage.digraph class to portage.util.digraph.digraph. (trunk r15423)

svn path=/main/branches/2.1.7/; revision=15645

14 years agoMove the portage.util module into a directory, for splitting into smaller files.
Zac Medico [Tue, 2 Mar 2010 20:55:11 +0000 (20:55 -0000)]
Move the portage.util module into a directory, for splitting into smaller files.
(trunk r15422)

svn path=/main/branches/2.1.7/; revision=15644

14 years agoCreate a directory for splitting the portage.util module into smaller files.
Zac Medico [Tue, 2 Mar 2010 20:54:59 +0000 (20:54 -0000)]
Create a directory for splitting the portage.util module into smaller files.
(trunk r15421)

svn path=/main/branches/2.1.7/; revision=15643

14 years agoDon't import the portage.dbapi.dbapi class as portage.dbapi anymore, since
Zac Medico [Tue, 2 Mar 2010 20:54:43 +0000 (20:54 -0000)]
Don't import the portage.dbapi.dbapi class as portage.dbapi anymore, since
it results in a strange namespace collision (portage.dbapi is both a class
and a module). Hopefully this won't break any api consumers since it's a pure
 virtual class anyway. (trunk r15420)

svn path=/main/branches/2.1.7/; revision=15642

14 years agoUse lazy import for the portage.dbapi module. (trunk r15419)
Zac Medico [Tue, 2 Mar 2010 20:53:03 +0000 (20:53 -0000)]
Use lazy import for the portage.dbapi module. (trunk r15419)

svn path=/main/branches/2.1.7/; revision=15641

14 years agoBug #299095 - Add a deprecation warning for check_license calls with EAPI >= 3
Zac Medico [Tue, 2 Mar 2010 20:52:44 +0000 (20:52 -0000)]
Bug #299095 - Add a deprecation warning for check_license calls with EAPI >= 3
since it is superceded by LICENSE masking. (trunk r15418)

svn path=/main/branches/2.1.7/; revision=15640

14 years agoMove the portage.FetchlistDict class to the portage.dbapi.porttree module.
Zac Medico [Tue, 2 Mar 2010 20:52:31 +0000 (20:52 -0000)]
Move the portage.FetchlistDict class to the portage.dbapi.porttree module.
(trunk r15417)

svn path=/main/branches/2.1.7/; revision=15639

14 years agoShow a deprecation warning when getvirtuals() is called. (trunk r15416)
Zac Medico [Tue, 2 Mar 2010 20:52:22 +0000 (20:52 -0000)]
Show a deprecation warning when getvirtuals() is called. (trunk r15416)

svn path=/main/branches/2.1.7/; revision=15638

14 years agoShow a deprecation warning when pkgmerge() is called. (trunk r15415)
Zac Medico [Tue, 2 Mar 2010 20:52:10 +0000 (20:52 -0000)]
Show a deprecation warning when pkgmerge() is called. (trunk r15415)

svn path=/main/branches/2.1.7/; revision=15637

14 years agoShow a deprecation warning when digestParseFile() is called. (trunk r15414)
Zac Medico [Tue, 2 Mar 2010 20:52:01 +0000 (20:52 -0000)]
Show a deprecation warning when digestParseFile() is called. (trunk r15414)

svn path=/main/branches/2.1.7/; revision=15636

14 years agoMove portage.flatten to portage.dep.flatten. (trunk r15413)
Zac Medico [Tue, 2 Mar 2010 20:51:52 +0000 (20:51 -0000)]
Move portage.flatten to portage.dep.flatten. (trunk r15413)

svn path=/main/branches/2.1.7/; revision=15635

14 years agoHandle CacheCorruption from self.db_ro in _setitem, triggered by INHERITED
Zac Medico [Tue, 2 Mar 2010 20:51:44 +0000 (20:51 -0000)]
Handle CacheCorruption from self.db_ro in _setitem, triggered by INHERITED
containing non-existent eclass inside metadata.database._parse_data. Thanks
to Vlastimil Babka <caster@g.o> for reporting. (trunk r15412)

svn path=/main/branches/2.1.7/; revision=15634

14 years agoAdd a note about --rebuilt-binaries. (trunk r15411)
Zac Medico [Tue, 2 Mar 2010 20:50:14 +0000 (20:50 -0000)]
Add a note about --rebuilt-binaries. (trunk r15411)

svn path=/main/branches/2.1.7/; revision=15632

14 years agoMove portage.cpv_getkey() to the portage.versions module. (trunk r15410)
Zac Medico [Tue, 2 Mar 2010 20:47:57 +0000 (20:47 -0000)]
Move portage.cpv_getkey() to the portage.versions module. (trunk r15410)

svn path=/main/branches/2.1.7/; revision=15631

14 years agoAdd missing newline to the "CONFIG_PROTECT is empty" warning message.
Zac Medico [Tue, 2 Mar 2010 20:47:36 +0000 (20:47 -0000)]
Add missing newline to the "CONFIG_PROTECT is empty" warning message.
(trunk r15409)

svn path=/main/branches/2.1.7/; revision=15630

14 years agoUse a frozenset for use inside binarytree._eval_use_flags(). (trunk r15407)
Zac Medico [Tue, 2 Mar 2010 20:47:21 +0000 (20:47 -0000)]
Use a frozenset for use inside binarytree._eval_use_flags(). (trunk r15407)

svn path=/main/branches/2.1.7/; revision=15629

14 years agoAdd stacklevel=2 to warnings.warn calls. (trunk r15406)
Zac Medico [Tue, 2 Mar 2010 20:47:04 +0000 (20:47 -0000)]
Add stacklevel=2 to warnings.warn calls. (trunk r15406)

svn path=/main/branches/2.1.7/; revision=15628

14 years agoAdd stacklevel=2 to warnings.warn() calls. (trunk r15405)
Zac Medico [Tue, 2 Mar 2010 20:46:56 +0000 (20:46 -0000)]
Add stacklevel=2 to warnings.warn() calls. (trunk r15405)

svn path=/main/branches/2.1.7/; revision=15627

14 years agoRemove deprecated methods that call removed key_expand function. (trunk r15404)
Zac Medico [Tue, 2 Mar 2010 20:46:39 +0000 (20:46 -0000)]
Remove deprecated methods that call removed key_expand function. (trunk r15404)

svn path=/main/branches/2.1.7/; revision=15626

14 years agoAdd DeprecationWarning to dep_virtual function. (trunk r15403)
Zac Medico [Tue, 2 Mar 2010 20:46:27 +0000 (20:46 -0000)]
Add DeprecationWarning to dep_virtual function. (trunk r15403)

svn path=/main/branches/2.1.7/; revision=15625

14 years agoRemove deprecated key_expand function and config.load_infodir method.
Zac Medico [Tue, 2 Mar 2010 20:46:13 +0000 (20:46 -0000)]
Remove deprecated key_expand function and config.load_infodir method.
(trunk r15402)

svn path=/main/branches/2.1.7/; revision=15624

14 years agoUse Atom.cp instead of dep_getkey. (trunk r15401)
Zac Medico [Tue, 2 Mar 2010 20:45:50 +0000 (20:45 -0000)]
Use Atom.cp instead of dep_getkey. (trunk r15401)

svn path=/main/branches/2.1.7/; revision=15623

14 years agoUse Atom.cp instead of dep_getkey. (trunk r15400)
Zac Medico [Tue, 2 Mar 2010 20:45:14 +0000 (20:45 -0000)]
Use Atom.cp instead of dep_getkey. (trunk r15400)

svn path=/main/branches/2.1.7/; revision=15622

14 years agoUse Atom.cp instead of dep_getkey. (trunk r15399)
Zac Medico [Tue, 2 Mar 2010 20:43:32 +0000 (20:43 -0000)]
Use Atom.cp instead of dep_getkey. (trunk r15399)

svn path=/main/branches/2.1.7/; revision=15621

14 years agoUse a valid atom in the dep_getkey docstring. (trunk r15398)
Zac Medico [Tue, 2 Mar 2010 20:39:08 +0000 (20:39 -0000)]
Use a valid atom in the dep_getkey docstring. (trunk r15398)

svn path=/main/branches/2.1.7/; revision=15620

14 years agoUse isvalidatom to validate PROVIDE entries. (trunk r15397)
Zac Medico [Tue, 2 Mar 2010 20:38:54 +0000 (20:38 -0000)]
Use isvalidatom to validate PROVIDE entries. (trunk r15397)

svn path=/main/branches/2.1.7/; revision=15619

14 years agoFix deprecated usage of dep_getkey. (trunk r15396)
Zac Medico [Tue, 2 Mar 2010 20:38:46 +0000 (20:38 -0000)]
Fix deprecated usage of dep_getkey. (trunk r15396)

svn path=/main/branches/2.1.7/; revision=15618

14 years agoFix deprecated usage of dep_getkey. (trunk r15395)
Zac Medico [Tue, 2 Mar 2010 20:38:36 +0000 (20:38 -0000)]
Fix deprecated usage of dep_getkey. (trunk r15395)

svn path=/main/branches/2.1.7/; revision=15617

14 years agoBail out when given an invalid mode. (trunk r15394)
Zac Medico [Tue, 2 Mar 2010 20:38:22 +0000 (20:38 -0000)]
Bail out when given an invalid mode. (trunk r15394)

svn path=/main/branches/2.1.7/; revision=15616

14 years agoBug #268724 - Show a warning message for --unmerge operations and suggest
Zac Medico [Tue, 2 Mar 2010 20:38:11 +0000 (20:38 -0000)]
Bug #268724 - Show a warning message for --unmerge operations and suggest
--depclean <atom> instead. (trunk r15393)

svn path=/main/branches/2.1.7/; revision=15615

14 years agoBug #303519 - Call warnings.warn() with stacklevel=2 inside dep_getkey and
Zac Medico [Tue, 2 Mar 2010 20:38:03 +0000 (20:38 -0000)]
Bug #303519 - Call warnings.warn() with stacklevel=2 inside dep_getkey and
dep_getcpv so that the caller is displayed. (trunk r15392)

svn path=/main/branches/2.1.7/; revision=15614

14 years agoFix deprecated usage of dep_getkey. (trunk r15391)
Zac Medico [Tue, 2 Mar 2010 20:37:56 +0000 (20:37 -0000)]
Fix deprecated usage of dep_getkey. (trunk r15391)

svn path=/main/branches/2.1.7/; revision=15613

14 years agoFix deprecated usage of dep_getkey. (trunk r15390)
Zac Medico [Tue, 2 Mar 2010 20:37:48 +0000 (20:37 -0000)]
Fix deprecated usage of dep_getkey. (trunk r15390)

svn path=/main/branches/2.1.7/; revision=15612

14 years agoFix deprecated usage of dep_getkey. (trunk r15388)
Zac Medico [Tue, 2 Mar 2010 20:37:38 +0000 (20:37 -0000)]
Fix deprecated usage of dep_getkey. (trunk r15388)

svn path=/main/branches/2.1.7/; revision=15611

14 years agoFix deprecated usage of dep_getkey. (trunk r15383)
Zac Medico [Tue, 2 Mar 2010 20:37:23 +0000 (20:37 -0000)]
Fix deprecated usage of dep_getkey. (trunk r15383)

svn path=/main/branches/2.1.7/; revision=15610

14 years agoFix deprecated usage of dep_getkey. (trunk r15382)
Zac Medico [Tue, 2 Mar 2010 20:35:20 +0000 (20:35 -0000)]
Fix deprecated usage of dep_getkey. (trunk r15382)

svn path=/main/branches/2.1.7/; revision=15609

14 years agoFix deprecated dep_getkey usage in match_from_list. (trunk r15381)
Zac Medico [Tue, 2 Mar 2010 20:35:04 +0000 (20:35 -0000)]
Fix deprecated dep_getkey usage in match_from_list. (trunk r15381)

svn path=/main/branches/2.1.7/; revision=15608

14 years agoMake dep_getkey() recommend cpv_getkey() if given a cpv. (trunk r15380)
Zac Medico [Tue, 2 Mar 2010 20:34:07 +0000 (20:34 -0000)]
Make dep_getkey() recommend cpv_getkey() if given a cpv. (trunk r15380)

svn path=/main/branches/2.1.7/; revision=15607

14 years agoUse a property to trigger deprecation warnings if binarytree.remotepkgs
Zac Medico [Tue, 2 Mar 2010 20:32:53 +0000 (20:32 -0000)]
Use a property to trigger deprecation warnings if binarytree.remotepkgs
is accessed. (trunk r15379)

svn path=/main/branches/2.1.7/; revision=15606

14 years agoRemove the deprecated 'clone' parameter from the portagetree constructor.
Zac Medico [Tue, 2 Mar 2010 20:32:42 +0000 (20:32 -0000)]
Remove the deprecated 'clone' parameter from the portagetree constructor.
(trunk r15378)

svn path=/main/branches/2.1.7/; revision=15605

14 years agoRemove deprecated portdbapi.getfetchlist() method. (trunk r15377)
Zac Medico [Tue, 2 Mar 2010 20:32:33 +0000 (20:32 -0000)]
Remove deprecated portdbapi.getfetchlist() method. (trunk r15377)

svn path=/main/branches/2.1.7/; revision=15604

14 years agoRemove deprecated binarytree.get_use() method. (trunk r15376)
Zac Medico [Tue, 2 Mar 2010 20:32:20 +0000 (20:32 -0000)]
Remove deprecated binarytree.get_use() method. (trunk r15376)

svn path=/main/branches/2.1.7/; revision=15603

14 years agoRemove the deprecated 'clone' parameter to the binarytree constructor.
Zac Medico [Tue, 2 Mar 2010 20:32:09 +0000 (20:32 -0000)]
Remove the deprecated 'clone' parameter to the binarytree constructor.
(trunk r15375)

svn path=/main/branches/2.1.7/; revision=15602

14 years agoDeprecate the unused getbinpkgsonly parameter to binarytree.populate().
Zac Medico [Tue, 2 Mar 2010 20:31:57 +0000 (20:31 -0000)]
Deprecate the unused getbinpkgsonly parameter to binarytree.populate().
(trunk r15374)

svn path=/main/branches/2.1.7/; revision=15601

14 years agoAllow --rebuilt-binaries to trigger downgrades. (trunk r15373)
Zac Medico [Tue, 2 Mar 2010 20:31:42 +0000 (20:31 -0000)]
Allow --rebuilt-binaries to trigger downgrades. (trunk r15373)

svn path=/main/branches/2.1.7/; revision=15600

14 years agoOnly enable --rebuilt-binaries automatically if --update and --deep are also
Zac Medico [Tue, 2 Mar 2010 20:31:29 +0000 (20:31 -0000)]
Only enable --rebuilt-binaries automatically if --update and --deep are also
enabled. (trunk r15372)

svn path=/main/branches/2.1.7/; revision=15599

14 years agoRemove unused merge_cmd variable. (trunk r15371)
Zac Medico [Tue, 2 Mar 2010 20:28:07 +0000 (20:28 -0000)]
Remove unused merge_cmd variable. (trunk r15371)

svn path=/main/branches/2.1.7/; revision=15598

14 years agoRemove diffutils version detection code since it's not really needed.
Zac Medico [Tue, 2 Mar 2010 20:27:34 +0000 (20:27 -0000)]
Remove diffutils version detection code since it's not really needed.
(trunk r15370)

svn path=/main/branches/2.1.7/; revision=15597

14 years agoUpdate the spinner in depgraph._serialize_tasks when searching for
Zac Medico [Tue, 2 Mar 2010 20:27:10 +0000 (20:27 -0000)]
Update the spinner in depgraph._serialize_tasks when searching for
suitable uninstall tasks. (trunk r15369)

svn path=/main/branches/2.1.7/; revision=15596

14 years agoFix broken diffutils vercmp code. (trunk r15368)
Zac Medico [Tue, 2 Mar 2010 20:26:56 +0000 (20:26 -0000)]
Fix broken diffutils vercmp code. (trunk r15368)

svn path=/main/branches/2.1.7/; revision=15595

14 years agoFix colors for --rebuilt-binaries docs. (trunk r15367)
Zac Medico [Tue, 2 Mar 2010 20:26:48 +0000 (20:26 -0000)]
Fix colors for --rebuilt-binaries docs. (trunk r15367)

svn path=/main/branches/2.1.7/; revision=15594

14 years agoAdd a comment about slowness in _serialize_tasks when there are lots of
Zac Medico [Tue, 2 Mar 2010 20:26:39 +0000 (20:26 -0000)]
Add a comment about slowness in _serialize_tasks when there are lots of
blockers to solve. (trunk r15366)

svn path=/main/branches/2.1.7/; revision=15593

14 years agoBug #305393 - Handle new sdiff exit status for diffutils-2.9. (trunk r15365)
Zac Medico [Tue, 2 Mar 2010 20:26:29 +0000 (20:26 -0000)]
Bug #305393 - Handle new sdiff exit status for diffutils-2.9. (trunk r15365)

svn path=/main/branches/2.1.7/; revision=15592

14 years agoAdd a --rebuilt-binaries[=n] option, causing automatic replacement of
Zac Medico [Tue, 2 Mar 2010 20:26:08 +0000 (20:26 -0000)]
Add a --rebuilt-binaries[=n] option, causing automatic replacement of
installed packages with binary packages that have been rebuilt. Rebuilds
are detected by comparison of BUILD_TIME package metadata. This option is
enabled automatically when using binary packages, so rebuilt binaries are
installed with a user's typical update command. This isn't possible with
the existing @rebuild-binaries package set since that only works with
--selective=n and therefore can't be used with a typical world update.
The package set framework should support this type of behavior sometime
in the future. (trunk r15364)

svn path=/main/branches/2.1.7/; revision=15591

14 years agoAdd @rebuilt-binaries set which uses BUILD_TIME to pull in binary packages
Zac Medico [Tue, 2 Mar 2010 20:24:48 +0000 (20:24 -0000)]
Add @rebuilt-binaries set which uses BUILD_TIME to pull in binary packages
that have a different build time from a currently installed package of the
exact same version. (trunk r15363)

svn path=/main/branches/2.1.7/; revision=15590

14 years agoBug #303567 - Merge libc asap, in order to account for implicit dependencies.
Zac Medico [Tue, 2 Mar 2010 20:22:00 +0000 (20:22 -0000)]
Bug #303567 - Merge libc asap, in order to account for implicit dependencies.
(trunk r15362)

svn path=/main/branches/2.1.7/; revision=15589

14 years agoFix type in CLEAN_DELAY docs. (trunk r15361)
Zac Medico [Tue, 2 Mar 2010 20:21:48 +0000 (20:21 -0000)]
Fix type in CLEAN_DELAY docs. (trunk r15361)

svn path=/main/branches/2.1.7/; revision=15588

14 years agoCache BUILD_TIME in $PKGDIR/Packages and inside bindbapi. (trunk r15360)
Zac Medico [Tue, 2 Mar 2010 20:21:34 +0000 (20:21 -0000)]
Cache BUILD_TIME in $PKGDIR/Packages and inside bindbapi. (trunk r15360)

svn path=/main/branches/2.1.7/; revision=15587

14 years agoCache BUILD_TIME in Package.metadata. (trunk r15359)
Zac Medico [Tue, 2 Mar 2010 20:21:19 +0000 (20:21 -0000)]
Cache BUILD_TIME in Package.metadata. (trunk r15359)

svn path=/main/branches/2.1.7/; revision=15586

14 years agoCache BUILD_TIME in vdb_metadata.pickle. (trunk r15358)
Zac Medico [Tue, 2 Mar 2010 20:21:04 +0000 (20:21 -0000)]
Cache BUILD_TIME in vdb_metadata.pickle. (trunk r15358)

svn path=/main/branches/2.1.7/; revision=15585

14 years agoAdd a BUILD_TIME vdb entry containing the integer number of seconds since the
Zac Medico [Tue, 2 Mar 2010 20:20:38 +0000 (20:20 -0000)]
Add a BUILD_TIME vdb entry containing the integer number of seconds since the
unix Epoch. This will be useful for creating package sets that involve
comparison of installed packages to binary packages, especially for binhost
users. See discussion here:

 http://archives.gentoo.org/gentoo-portage-dev/msg_d068a8deefd179cc23808bc23f3de200.xml
(trunk r15357)

svn path=/main/branches/2.1.7/; revision=15584

14 years agoAdd a 'trees' parameter to portdbapi.cp_all(). Thanks to Brian Dolbec (dol-sen)
Zac Medico [Tue, 2 Mar 2010 20:20:19 +0000 (20:20 -0000)]
Add a 'trees' parameter to portdbapi.cp_all(). Thanks to Brian Dolbec (dol-sen)
for this patch. (trunk r15356)

svn path=/main/branches/2.1.7/; revision=15583

14 years agoUse config.environ() instead of config.items() when spawning FETCHCOMMAND.
Zac Medico [Tue, 2 Mar 2010 20:20:05 +0000 (20:20 -0000)]
Use config.environ() instead of config.items() when spawning FETCHCOMMAND.
(trunk r15355)

svn path=/main/branches/2.1.7/; revision=15582

14 years agoMake sure that config._accept_chost() accepts empty CHOST. (trunk r15354)
Zac Medico [Tue, 2 Mar 2010 20:19:57 +0000 (20:19 -0000)]
Make sure that config._accept_chost() accepts empty CHOST. (trunk r15354)

svn path=/main/branches/2.1.7/; revision=15581

14 years agoPrevent CHOST vdb entries from being created for virtual packages.
Zac Medico [Tue, 2 Mar 2010 20:17:52 +0000 (20:17 -0000)]
Prevent CHOST vdb entries from being created for virtual packages.
(trunk r15353)

svn path=/main/branches/2.1.7/; revision=15580

14 years agoBug #304981 - Truncate the build log after successful fetch, instead of
Zac Medico [Tue, 2 Mar 2010 20:17:08 +0000 (20:17 -0000)]
Bug #304981 - Truncate the build log after successful fetch, instead of
removing it, so as not to interfere with tail -f. (trunk r15352)

svn path=/main/branches/2.1.7/; revision=15579

14 years agoEvaluate conditional USE deps for *DEPEND atoms saved in vdb entries.
Zac Medico [Tue, 2 Mar 2010 20:16:52 +0000 (20:16 -0000)]
Evaluate conditional USE deps for *DEPEND atoms saved in vdb entries.
(trunk r15351)

svn path=/main/branches/2.1.7/; revision=15578

14 years agoDon't save SRC_URI as a vdb entry since it's pretty useless and it's available
Zac Medico [Tue, 2 Mar 2010 20:16:39 +0000 (20:16 -0000)]
Don't save SRC_URI as a vdb entry since it's pretty useless and it's available
in environment.bz2 anyway. (trunk r15350)

svn path=/main/branches/2.1.7/; revision=15577

14 years agoAfter src_install, save fewer variables when writing the vdb entry for a
Zac Medico [Tue, 2 Mar 2010 20:16:29 +0000 (20:16 -0000)]
After src_install, save fewer variables when writing the vdb entry for a
virtual package. (trunk r15349)

svn path=/main/branches/2.1.7/; revision=15576

14 years agoEvaluate USE conditionals when writing vdb entries after src_install.
Zac Medico [Tue, 2 Mar 2010 20:13:56 +0000 (20:13 -0000)]
Evaluate USE conditionals when writing vdb entries after src_install.
(trunk r15348)

svn path=/main/branches/2.1.7/; revision=15575

14 years agoBug #262647 - Explicitly exclude SRC_URI and other potentially long metadata
Zac Medico [Tue, 2 Mar 2010 20:13:47 +0000 (20:13 -0000)]
Bug #262647 - Explicitly exclude SRC_URI and other potentially long metadata
variables from config.environ() exports, to avoid potential E2BIG errors from
execve calls. (trunk r15347)

svn path=/main/branches/2.1.7/; revision=15574

14 years agoBug #304793 - Update --newuse docs to indicate that this option also implies
Zac Medico [Tue, 2 Mar 2010 20:13:34 +0000 (20:13 -0000)]
Bug #304793 - Update --newuse docs to indicate that this option also implies
--selective. (trunk r15346)

svn path=/main/branches/2.1.7/; revision=15573

14 years agoWhen creating a config instance for ROOT=/ with a clean env, copy PATH and
Zac Medico [Tue, 2 Mar 2010 20:13:24 +0000 (20:13 -0000)]
When creating a config instance for ROOT=/ with a clean env, copy PATH and
TERM variables, since they may be useful. (trunk r15345)

svn path=/main/branches/2.1.7/; revision=15572

14 years agoUse os.environ instead of the config.environ(). This solves binpkg extraction
Zac Medico [Tue, 2 Mar 2010 20:13:08 +0000 (20:13 -0000)]
Use os.environ instead of the config.environ(). This solves binpkg extraction
issues with catalyst stage1 due to PATH being unset and bzip2/tar binaries
not being found by bash. (trunk r15344)

svn path=/main/branches/2.1.7/; revision=15571

14 years agoLogg errors that occur during binpkg extraction. (trunk r15343)
Zac Medico [Tue, 2 Mar 2010 20:12:58 +0000 (20:12 -0000)]
Logg errors that occur during binpkg extraction. (trunk r15343)

svn path=/main/branches/2.1.7/; revision=15570

14 years agoRemove unnecessary newline in dblink._eerror message. (trunk r15342)
Zac Medico [Tue, 2 Mar 2010 20:12:50 +0000 (20:12 -0000)]
Remove unnecessary newline in dblink._eerror message. (trunk r15342)

svn path=/main/branches/2.1.7/; revision=15569

14 years agoFix dblink._eerror argument where list is required instead of string.
Zac Medico [Tue, 2 Mar 2010 20:12:42 +0000 (20:12 -0000)]
Fix dblink._eerror argument where list is required instead of string.
(trunk r15341)

svn path=/main/branches/2.1.7/; revision=15568

14 years agoMake previous commit use eerror for logging. (trunk r15339)
Zac Medico [Tue, 2 Mar 2010 20:12:33 +0000 (20:12 -0000)]
Make previous commit use eerror for logging. (trunk r15339)

svn path=/main/branches/2.1.7/; revision=15567

14 years agotry to be more forgiving if unlinking fails, because we end up in an unknown
Zac Medico [Tue, 2 Mar 2010 20:12:24 +0000 (20:12 -0000)]
try to be more forgiving if unlinking fails, because we end up in an unknown
state if we die right away, as demonstrated by darkside
(branches/prefix r15337) (trunk r15338)

svn path=/main/branches/2.1.7/; revision=15566

14 years agoIgnore blockers in DEPEND of built packages when --with-bdeps is enabled.
Zac Medico [Tue, 2 Mar 2010 20:12:14 +0000 (20:12 -0000)]
Ignore blockers in DEPEND of built packages when --with-bdeps is enabled.
(trunk r15336)

svn path=/main/branches/2.1.7/; revision=15565

14 years agoBug #303211 - Discard invalid SIZE metadata when using the old binhost
Zac Medico [Tue, 2 Mar 2010 20:11:56 +0000 (20:11 -0000)]
Bug #303211 - Discard invalid SIZE metadata when using the old binhost
protocol. (trunk r15333)

svn path=/main/branches/2.1.7/; revision=15564

14 years agoBug #298479 - Filter $USER from the ebuild environment since it's inaccurate
Zac Medico [Tue, 2 Mar 2010 20:11:47 +0000 (20:11 -0000)]
Bug #298479 - Filter $USER from the ebuild environment since it's inaccurate
with FEATURES=userpriv. (trunk r15332)

svn path=/main/branches/2.1.7/; revision=15563

14 years agoUse Atom.cp instead of dep_getkey(). (trunk r15331)
Zac Medico [Tue, 2 Mar 2010 20:11:39 +0000 (20:11 -0000)]
Use Atom.cp instead of dep_getkey(). (trunk r15331)

svn path=/main/branches/2.1.7/; revision=15562

14 years agoUse Atom.cp instead of dep_getkey(), and use cpv_getkey() instead of
Zac Medico [Tue, 2 Mar 2010 20:11:26 +0000 (20:11 -0000)]
Use Atom.cp instead of dep_getkey(), and use cpv_getkey() instead of
dep_getkey() where appropriate. (trunk r15330)

svn path=/main/branches/2.1.7/; revision=15561

14 years agoSkip atom validation in WorldHandler since WorldSelectedSet handles this
Zac Medico [Tue, 2 Mar 2010 20:09:11 +0000 (20:09 -0000)]
Skip atom validation in WorldHandler since WorldSelectedSet handles this
already, and use Atom.cp instead of dep_getkey(). (trunk r15327)

svn path=/main/branches/2.1.7/; revision=15560