Zac Medico [Tue, 2 Mar 2010 21:10:20 +0000 (21:10 -0000)]
Bug #307235 - Inside depgraph._add_dep, discard child choices for deps that
will be not be processed immediately, since "complete" mode may select a
different child later. (trunk r15503)
svn path=/main/branches/2.1.7/; revision=15701
Zac Medico [Tue, 2 Mar 2010 21:10:06 +0000 (21:10 -0000)]
Remove unused print() import. (trunk r15502)
svn path=/main/branches/2.1.7/; revision=15700
Zac Medico [Tue, 2 Mar 2010 21:09:59 +0000 (21:09 -0000)]
Remove unused imports. (trunk r15501)
svn path=/main/branches/2.1.7/; revision=15699
Zac Medico [Tue, 2 Mar 2010 21:09:52 +0000 (21:09 -0000)]
Add ObjectProxy __gt__, __ge__, __lt__, and __le__ methods to fix TypeError
with python3 reported by Arfrever:
File "/usr/lib/portage/pym/portage/__init__.py", line 513, in portageexit
if secpass > 1 and os.environ.get("SANDBOX_ON") != "1":
TypeError: unorderable types: _LazyImportFrom() > int() (trunk r15497)
svn path=/main/branches/2.1.7/; revision=15698
Zac Medico [Tue, 2 Mar 2010 21:09:44 +0000 (21:09 -0000)]
Fix broken reference to portage._spawn_misc_sh(). Thanks to Arfrever for
reporting. (trunk r15496)
svn path=/main/branches/2.1.7/; revision=15697
Zac Medico [Tue, 2 Mar 2010 21:09:35 +0000 (21:09 -0000)]
Remove print() usage. (trunk r15495)
svn path=/main/branches/2.1.7/; revision=15696
Zac Medico [Tue, 2 Mar 2010 21:09:26 +0000 (21:09 -0000)]
Remove print() usage. (trunk r15494)
svn path=/main/branches/2.1.7/; revision=15695
Zac Medico [Tue, 2 Mar 2010 21:09:18 +0000 (21:09 -0000)]
Fix broken fakedbapi.cpv_inject/cpv_remove calls. (trunk r15493)
svn path=/main/branches/2.1.7/; revision=15694
Zac Medico [Tue, 2 Mar 2010 21:09:07 +0000 (21:09 -0000)]
Move legacy globals code into a _legacy_globals module that's imported on
demand. (trunk r15492)
svn path=/main/branches/2.1.7/; revision=15693
Zac Medico [Tue, 2 Mar 2010 21:09:01 +0000 (21:09 -0000)]
Move deprecated_profile_check to portage.package.ebuild submodule.
(trunk r15491)
svn path=/main/branches/2.1.7/; revision=15692
Zac Medico [Tue, 2 Mar 2010 21:08:42 +0000 (21:08 -0000)]
Move the MtimeDB class to portage.util.mtimedb and deprecate the commit_mtimedb
function. (trunk r15490)
svn path=/main/branches/2.1.7/; revision=15691
Zac Medico [Tue, 2 Mar 2010 21:08:24 +0000 (21:08 -0000)]
Fix vardbapi.move_ent and aux_update to clear relevant caches. (trunk r15489)
svn path=/main/branches/2.1.7/; revision=15690
Zac Medico [Tue, 2 Mar 2010 21:08:12 +0000 (21:08 -0000)]
Make bindbapi override cpv_inject and cpv_remove, for deleting stale values
from self._aux_cache. Also, add a comment about stale cache handling inside
aux_update. (trunk r15488)
svn path=/main/branches/2.1.7/; revision=15689
Zac Medico [Tue, 2 Mar 2010 21:08:03 +0000 (21:08 -0000)]
Make _global_updates ensure that the binarytree is only populated with local
packages (getbinpkgs=0), and fix binarytree.populate() to behave properly
when called more than once. (trunk r15487)
svn path=/main/branches/2.1.7/; revision=15688
Zac Medico [Tue, 2 Mar 2010 21:07:53 +0000 (21:07 -0000)]
Add a --quiet-unmerge-warn option to disable the warning message that's shown
prior to --unmerge actions. Thanks to Thomas Sachau <tommy@gentoo.org> for the
suggestion. (trunk r15486)
svn path=/main/branches/2.1.7/; revision=15687
Zac Medico [Tue, 2 Mar 2010 21:07:13 +0000 (21:07 -0000)]
Fix reference to portage.util.listdir.dircache. (trunk r15477)
svn path=/main/branches/2.1.7/; revision=15686
Zac Medico [Tue, 2 Mar 2010 21:07:01 +0000 (21:07 -0000)]
Remove deprecated flushmtimedb function. (trunk r15476)
svn path=/main/branches/2.1.7/; revision=15685
Zac Medico [Tue, 2 Mar 2010 21:06:52 +0000 (21:06 -0000)]
Move portage._global_updates to a submodule. (trunk r15475)
svn path=/main/branches/2.1.7/; revision=15684
Zac Medico [Tue, 2 Mar 2010 21:06:43 +0000 (21:06 -0000)]
Remove unused 'dircache' variable that's moved to portage.util.listdir.
(trunk r15474)
svn path=/main/branches/2.1.7/; revision=15683
Zac Medico [Tue, 2 Mar 2010 21:06:35 +0000 (21:06 -0000)]
Move missing encodings module workarounds (<python-2.6.4 + USE=build) to a
_ensure_encodings module that's only imported on demand. (trunk r15473)
svn path=/main/branches/2.1.7/; revision=15682
Zac Medico [Tue, 2 Mar 2010 21:06:22 +0000 (21:06 -0000)]
Another turquoise -> red. (trunk r15472)
svn path=/main/branches/2.1.7/; revision=15681
Zac Medico [Tue, 2 Mar 2010 21:06:14 +0000 (21:06 -0000)]
Bug #307021 - Show "Please fix" message in red instead of turquoise when
repoman fails. (trunk r15471)
svn path=/main/branches/2.1.7/; revision=15680
Zac Medico [Tue, 2 Mar 2010 21:06:02 +0000 (21:06 -0000)]
Eliminate the PhaseCheck constructor and make PhaseCheck.phases_re a class
attribute. Thanks to Sebastian Pipping <sping@g.o> for the initial patch.
(trunk r15470)
svn path=/main/branches/2.1.7/; revision=15679
Zac Medico [Tue, 2 Mar 2010 21:05:39 +0000 (21:05 -0000)]
Move getvirtuals to _deprecated module. (trunk r15469)
svn path=/main/branches/2.1.7/; revision=15678
Zac Medico [Tue, 2 Mar 2010 21:05:00 +0000 (21:05 -0000)]
Move merge and unmerge functions to the vartree module. (trunk r15468)
svn path=/main/branches/2.1.7/; revision=15677
Zac Medico [Tue, 2 Mar 2010 21:01:55 +0000 (21:01 -0000)]
Fix broken dep_expand import from previous commit. (trunk r15467)
svn path=/main/branches/2.1.7/; revision=15676
Zac Medico [Tue, 2 Mar 2010 21:01:48 +0000 (21:01 -0000)]
Splid deprecated functions into a _deprecated module. (trunk r15466)
svn path=/main/branches/2.1.7/; revision=15675
Zac Medico [Tue, 2 Mar 2010 21:01:41 +0000 (21:01 -0000)]
Avoid name collision with dep_expand submodule so epydoc won't crash.
(trunk r15465)
svn path=/main/branches/2.1.7/; revision=15674
Zac Medico [Tue, 2 Mar 2010 21:01:30 +0000 (21:01 -0000)]
Move portage.movefile to portage.util.movefile. (trunk r15464)
svn path=/main/branches/2.1.7/; revision=15673
Zac Medico [Tue, 2 Mar 2010 21:01:19 +0000 (21:01 -0000)]
Split getmaskingstatus and getmaskingreason info portage.package.ebuild
submodules. (trunk r15463)
svn path=/main/branches/2.1.7/; revision=15672
Zac Medico [Tue, 2 Mar 2010 21:01:10 +0000 (21:01 -0000)]
Move portage.dep_check and related functions to portage.dep.dep_check.
(trunk r15462)
svn path=/main/branches/2.1.7/; revision=15671
Zac Medico [Tue, 2 Mar 2010 21:01:00 +0000 (21:01 -0000)]
Move dep.py to dep/__init__.py, for splitting into smaller files. (trunk r15461)
svn path=/main/branches/2.1.7/; revision=15670
Zac Medico [Tue, 2 Mar 2010 21:00:53 +0000 (21:00 -0000)]
Move dep_expand and cpv_expand into portage.dbapi submodules. (trunk r15460)
svn path=/main/branches/2.1.7/; revision=15669
Zac Medico [Tue, 2 Mar 2010 21:00:43 +0000 (21:00 -0000)]
Fix typo in import. (trunk r15459)
svn path=/main/branches/2.1.7/; revision=15668
Zac Medico [Tue, 2 Mar 2010 21:00:36 +0000 (21:00 -0000)]
Move portage.digestcheck to portage.package.ebuild.digestcheck. (trunk r15458)
svn path=/main/branches/2.1.7/; revision=15667
Zac Medico [Tue, 2 Mar 2010 21:00:27 +0000 (21:00 -0000)]
Fix broken digestgen import. (trunk r15457)
svn path=/main/branches/2.1.7/; revision=15666
Zac Medico [Tue, 2 Mar 2010 21:00:19 +0000 (21:00 -0000)]
Relocate portage.util.digestgen to portage.package.ebuild.digestgen.
(trunk r15456)
svn path=/main/branches/2.1.7/; revision=15665
Zac Medico [Tue, 2 Mar 2010 21:00:03 +0000 (21:00 -0000)]
Define 'long' for Python 3. (trunk r15455)
svn path=/main/branches/2.1.7/; revision=15664
Zac Medico [Tue, 2 Mar 2010 20:59:56 +0000 (20:59 -0000)]
Move digestgen to portage.util.digestgen. (trunk r15454)
svn path=/main/branches/2.1.7/; revision=15663
Zac Medico [Tue, 2 Mar 2010 20:59:48 +0000 (20:59 -0000)]
Move ExtractKernelVersion portage.util.ExtractKernelVersion. (trunk r15453)
svn path=/main/branches/2.1.7/; revision=15662
Zac Medico [Tue, 2 Mar 2010 20:59:38 +0000 (20:59 -0000)]
Move env_update to portage.util.env_update.envupdate. (trunk r15452)
svn path=/main/branches/2.1.7/; revision=15661
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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