portage.git
14 years agoFilter more variables that don't need to end up in environment.bz2.
Zac Medico [Thu, 2 Sep 2010 19:56:24 +0000 (12:56 -0700)]
Filter more variables that don't need to end up in environment.bz2.

14 years agoFix breakage for python3 from trying to mix bytes and unicode in
Zac Medico [Thu, 2 Sep 2010 19:54:50 +0000 (12:54 -0700)]
Fix breakage for python3 from trying to mix bytes and unicode in
load_default_config().

14 years agoAdd a _SANDBOX_COMPAT_LEVEL constant which will be used to enable
Zac Medico [Thu, 2 Sep 2010 19:24:02 +0000 (12:24 -0700)]
Add a _SANDBOX_COMPAT_LEVEL constant which will be used to enable
a workaround for bug #288863 in the stable branch.

14 years agoWhen signaling successful exit from an ebuild phase via ebuild-ipc,
Zac Medico [Thu, 2 Sep 2010 19:13:59 +0000 (12:13 -0700)]
When signaling successful exit from an ebuild phase via ebuild-ipc,
first check for non-empty $SANDBOX_LOG and signal unsuccessful exit
if necessary. This fixes an issue with phases being treated as
successful even when there were sandbox violations.

14 years agoOmit dotfiles in /usr/share/portage/config/sets (e.g. vim swapfiles).
Michał Górny [Thu, 2 Sep 2010 18:31:12 +0000 (20:31 +0200)]
Omit dotfiles in /usr/share/portage/config/sets (e.g. vim swapfiles).

14 years agoBug #248603 - Add a _ENABLE_REPO_NAME_WARN constant that's used to
Zac Medico [Thu, 2 Sep 2010 18:00:56 +0000 (11:00 -0700)]
Bug #248603 - Add a _ENABLE_REPO_NAME_WARN constant that's used to
disable warnings about "missing repo_name entries" for the stable
branch.

14 years agoHide the portageq list_preserved_libs command when _ENABLE_PRESERVE_LIBS
Zac Medico [Thu, 2 Sep 2010 17:19:05 +0000 (10:19 -0700)]
Hide the portageq list_preserved_libs command when _ENABLE_PRESERVE_LIBS
is False.

14 years agoBug #335670 - Make copyright header in herdbase.py refer to "GPL 2 or later"
Zac Medico [Thu, 2 Sep 2010 14:11:55 +0000 (07:11 -0700)]
Bug #335670 - Make copyright header in herdbase.py refer to "GPL 2 or later"
instead of just GPL-2.

14 years agoMake repoman disable FEATURES=unknown-features-warn for the profiles
Zac Medico [Thu, 2 Sep 2010 07:53:28 +0000 (00:53 -0700)]
Make repoman disable FEATURES=unknown-features-warn for the profiles
it's checking, since it's confusing if these warnings are displayed
without the user being told which profile they come from.

14 years agoAdjust EbuildIpcDaemon pickle read and write code in order to ensure
Zac Medico [Thu, 2 Sep 2010 07:05:06 +0000 (00:05 -0700)]
Adjust EbuildIpcDaemon pickle read and write code in order to ensure
atomc reading and writing of whole pickles. This should be the least
error-prone approach, given the non-blocking nature of the streams.

14 years agoBug #335642 - Also make show_masked_packages() display to stdout since
Zac Medico [Thu, 2 Sep 2010 05:32:15 +0000 (22:32 -0700)]
Bug #335642 - Also make show_masked_packages() display to stdout since
depgraph._show_unsatisfied_dep() calls it.

14 years agoBug #335642 - Revert depgraph._show_unsatisfied_dep() to display to
Zac Medico [Thu, 2 Sep 2010 05:22:52 +0000 (22:22 -0700)]
Bug #335642 - Revert depgraph._show_unsatisfied_dep() to display to
stdout, so that app-portage/autounmask continues to work. Note that
depgraph.display_problems() temporarily overrides the stdout stream
to point to stderr, so mask messages shown there continue to go
to stderr. Maybe the emerge --autounmask will eventually make
app-portage/autounmask obsolete, but for now we should support both
approaches since emerge --autounmask is relatively experimental.

14 years agoRemove reference to nonexistent _unlock_builddir() method in v2.2_rc73
Zac Medico [Wed, 1 Sep 2010 18:09:47 +0000 (11:09 -0700)]
Remove reference to nonexistent _unlock_builddir() method in
EbuildPhase._env_extractor_exit().

14 years agoAdd support to config.setcpv() for caching USE settings from built
Zac Medico [Wed, 1 Sep 2010 17:27:14 +0000 (10:27 -0700)]
Add support to config.setcpv() for caching USE settings from built
packages, and use it for evaluating conditional USE deps in atoms
passed via IPC to helpers like has_version and best_version.

Since the pickled object that contains the IPC command will no longer
contain USE, it should solve cases that have been reported in which
large USE strings trigger poor handling of non-blocking read in
pickle.load():

Traceback (most recent call last):
  File "/usr/bin/emerge", line 43, in <module>
    retval = emerge_main()
  File "/usr/lib64/portage/pym/_emerge/main.py", line 1649, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/lib64/portage/pym/_emerge/actions.py", line 437, in action_build
    retval = mergetask.merge()
  File "/usr/lib64/portage/pym/_emerge/Scheduler.py", line 1033, in merge
    rval = self._merge()
  File "/usr/lib64/portage/pym/_emerge/Scheduler.py", line 1349, in _merge
    self._main_loop()
  File "/usr/lib64/portage/pym/_emerge/Scheduler.py", line 1498, in _main_loop
    self._poll_loop()
  File "/usr/lib64/portage/pym/_emerge/PollScheduler.py", line 139, in _poll_loop
    handler(f, event)
  File "/usr/lib64/portage/pym/_emerge/EbuildIpcDaemon.py", line 36, in _input_handler
    obj = pickle.load(self._files.pipe_in)
  File "/usr/lib64/python2.6/pickle.py", line 1370, in load
    return Unpickler(file).load()
  File "/usr/lib64/python2.6/pickle.py", line 858, in load
    dispatch[key](self)
  File "/usr/lib64/python2.6/pickle.py", line 1195, in load_setitem
    value = stack.pop()
IndexError: pop from empty list

14 years agoMake atomic directory creation code in dblink.mergeme() use equivalent
Zac Medico [Wed, 1 Sep 2010 16:00:48 +0000 (09:00 -0700)]
Make atomic directory creation code in dblink.mergeme() use equivalent
error handling to portage.util.ensure_dirs().

14 years agoAdd a note to the ensure_dirs() docstring about atomic directory creation.
Zac Medico [Wed, 1 Sep 2010 15:51:41 +0000 (08:51 -0700)]
Add a note to the ensure_dirs() docstring about atomic directory creation.

14 years agoMake ensure_dirs() use os.path.isdir() to verify that the directory
Zac Medico [Wed, 1 Sep 2010 15:42:15 +0000 (08:42 -0700)]
Make ensure_dirs() use os.path.isdir() to verify that the directory
exists when EISDIR is raised, since this is abnormal behavior.

14 years agoIn ensure_dirs(), only call apply_permissions() when keyword arguments
Zac Medico [Wed, 1 Sep 2010 15:37:11 +0000 (08:37 -0700)]
In ensure_dirs(), only call apply_permissions() when keyword arguments
for it are given.

14 years agoMake more doebuild() commands exempt from _check_temp_dir().
Zac Medico [Wed, 1 Sep 2010 14:23:28 +0000 (07:23 -0700)]
Make more doebuild() commands exempt from _check_temp_dir().

14 years agoIn doebuild(), don't call _check_temp_dir() for pseudo-phases such as
Zac Medico [Wed, 1 Sep 2010 09:32:28 +0000 (02:32 -0700)]
In doebuild(), don't call _check_temp_dir() for pseudo-phases such as
'manifest' and 'digest' that don't require a temp dir.

14 years agoIn dblink.mergeme(), handle EISDIR which can be raised from mkdir calls
Zac Medico [Wed, 1 Sep 2010 06:00:53 +0000 (23:00 -0700)]
In dblink.mergeme(), handle EISDIR which can be raised from mkdir calls
on FreeBSD (see bug #187518).

14 years agoFix WorldSelectedSet._load2() to always return a list instead of a
Zac Medico [Wed, 1 Sep 2010 05:31:24 +0000 (22:31 -0700)]
Fix WorldSelectedSet._load2() to always return a list instead of a
set for nonatoms so that we don't trigger 'TypeError: can only
concatenate list (not "set") to list'.

14 years agoFix depgraph._serialize_tasks() so that portage-9999 is always promoted
Zac Medico [Wed, 1 Sep 2010 05:12:44 +0000 (22:12 -0700)]
Fix depgraph._serialize_tasks() so that portage-9999 is always promoted
to the front of the merge list when it is reinstalled.

14 years agoFix portage to create directories atomically in fast build.
David James [Wed, 14 Jul 2010 00:03:21 +0000 (17:03 -0700)]
Fix portage to create directories atomically in fast build.

If multiple ebuild processes create the same directory, portage should not
exit with an error message. Instead we should just be okay with the fact
that another process created the directory.

This is only necessary for fast build because we eliminate the giant lock that
surrounds package merges.

TEST=Create fresh chroot and do full build from source start to finish
BUG=none

Review URL: http://codereview.chromium.org/2998002

14 years agoUpdate portage to create directories atomically.
David James [Fri, 13 Aug 2010 20:39:17 +0000 (13:39 -0700)]
Update portage to create directories atomically.

Portage should use the ensure_dirs function instead of os.makedirs to create
directories, because this function ensures atomicity. It prevents failures
when more than one process tries to create the same directory.

This fixes a crash bug reported by msb:
[...]
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 3258, in _merge
    self.vartree.dbapi._bump_mtime(self.mycpv)
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 152, in _bump_mtime
    os.makedirs(catdir)
  File "/usr/lib64/portage/pym/portage/__init__.py", line 210, in __call__
    rval = self._func(*wrapped_args, **wrapped_kwargs)
  File "/usr/lib64/python2.6/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 17] File exists: '/home/msb/trunk/src/build/images/x86-generic/0.8.63.2010_08_03_1844-a1/rootfs//var/db/pkg/x11-proto'

BUG=chromium-os:5366
TEST=build_packages && build_image

Review URL: http://codereview.chromium.org/3113014

14 years agoAdd comments about consumers of FakeVardbapi.getpath().
Zac Medico [Tue, 31 Aug 2010 19:18:49 +0000 (12:18 -0700)]
Add comments about consumers of FakeVardbapi.getpath().

14 years agoSimplify the vartree constructor usage in config.getvirtuals().
Zac Medico [Tue, 31 Aug 2010 19:16:02 +0000 (12:16 -0700)]
Simplify the vartree constructor usage in config.getvirtuals().

14 years agoUse self.dbapi.getpath() to simplify code in vartree.get_provide().
Zac Medico [Tue, 31 Aug 2010 19:13:45 +0000 (12:13 -0700)]
Use self.dbapi.getpath() to simplify code in vartree.get_provide().

14 years agoBug #335439 - Fix "AttributeError: 'vartree' object has no attribute
Zac Medico [Tue, 31 Aug 2010 19:08:27 +0000 (12:08 -0700)]
Bug #335439 - Fix "AttributeError: 'vartree' object has no attribute
'_eroot'" in vartree.get_provide().

14 years agoWhen portage updates itself and the new version either inherits
Zac Medico [Tue, 31 Aug 2010 18:45:28 +0000 (11:45 -0700)]
When portage updates itself and the new version either inherits
git.eclass or has 9999 in its version, trigger the 'use copy of current
sources for install, then restart portage' routine. This is required
since with the live git portage-9999 ebuild we can't use the version
to detect incompatible changes to ebuild.sh. This issue was noticed
due to recent versions of ebuild.sh expecting PORTAGE_BZIP2_COMMAND to
be set, causing incompatibility with installed portage-9999 instances.

14 years agoFix ResolverPlayground.cleanup() to cleanup the portdbapi instance.
Zac Medico [Tue, 31 Aug 2010 16:54:14 +0000 (09:54 -0700)]
Fix ResolverPlayground.cleanup() to cleanup the portdbapi instance.

14 years agoAdd a fallback PORTAGE_BZIP2_COMMAND setting in ebuild.sh, as a
Zac Medico [Tue, 31 Aug 2010 15:10:29 +0000 (08:10 -0700)]
Add a fallback PORTAGE_BZIP2_COMMAND setting in ebuild.sh, as a
workaround for portage-9999 users.

14 years agoShow PORTAGE_BZIP2_COMMAND and PORTAGE_BUNZIP2_COMMAND in emerge --info,
Zac Medico [Tue, 31 Aug 2010 06:25:29 +0000 (23:25 -0700)]
Show PORTAGE_BZIP2_COMMAND and PORTAGE_BUNZIP2_COMMAND in emerge --info,
in case it triggers mysterious unpack() issues or something.

14 years agoFix bugs in features_set._prune_overrides() and add another test case.
Zac Medico [Tue, 31 Aug 2010 06:06:46 +0000 (23:06 -0700)]
Fix bugs in features_set._prune_overrides() and add another test case.

14 years agoAdd testcase to check that features_set._prune_overrides() is working
Zac Medico [Tue, 31 Aug 2010 05:00:44 +0000 (22:00 -0700)]
Add testcase to check that features_set._prune_overrides() is working
correctly.

14 years agoBug #335340 - Use PORTAGE_BUNZIP2_COMMAND and PORTAGE_BZIP2_COMMAND in
Zac Medico [Tue, 31 Aug 2010 04:14:31 +0000 (21:14 -0700)]
Bug #335340 - Use PORTAGE_BUNZIP2_COMMAND and PORTAGE_BZIP2_COMMAND in
ebuild.sh where appropriate:
* unpack()
* environment.bz2 compression

14 years agoBug #335340 - Add support for PORTAGE_BZIP2_COMMAND and
Zac Medico [Tue, 31 Aug 2010 03:55:11 +0000 (20:55 -0700)]
Bug #335340 - Add support for PORTAGE_BZIP2_COMMAND and
PORTAGE_BUNZIP2_COMMAND settings in make.conf. This only adds support
for binary packages, since that's where pbzip2 can provide the most
benefit in common cases.

14 years agoBug #326561 - Implement FEATURES=unknown-features-filter. This is not
Zac Medico [Tue, 31 Aug 2010 01:43:21 +0000 (18:43 -0700)]
Bug #326561 - Implement FEATURES=unknown-features-filter. This is not
enabled by default now, but it may be in the future, depending on feedback
from unknown-features-warn.

14 years agoMove FEATURES=unknown-features-warn code to config.regenerate() so
Zac Medico [Tue, 31 Aug 2010 00:54:34 +0000 (17:54 -0700)]
Move FEATURES=unknown-features-warn code to config.regenerate() so
that it shows warnings for unknown FEATURES settings from package.env,
and keep a record of shown warnings in config._unknown_features.

14 years agoWhen _ENABLE_DYN_LINK_MAP is False, show additional --depclean help
Zac Medico [Mon, 30 Aug 2010 23:46:09 +0000 (16:46 -0700)]
When _ENABLE_DYN_LINK_MAP is False, show additional --depclean help
and warnings advising use of revdep-rebuild.

14 years agoWhen _ENABLE_SET_CONFIG is False, disable reading/writing of the
Zac Medico [Mon, 30 Aug 2010 23:15:12 +0000 (16:15 -0700)]
When _ENABLE_SET_CONFIG is False, disable reading/writing of the
world_sets file in WorldSelectedSet.

14 years agoWhen _ENABLE_SET_CONFIG is False, make load_default_config() create
Zac Medico [Mon, 30 Aug 2010 23:07:43 +0000 (16:07 -0700)]
When _ENABLE_SET_CONFIG is False, make load_default_config() create
a default hardcoded set configuration that will be used by the
upcoming 2.1.9 branch.

14 years agoReplace the literal portage version in all man page headers with the
Zac Medico [Mon, 30 Aug 2010 21:28:28 +0000 (14:28 -0700)]
Replace the literal portage version in all man page headers with the
string 'VERSION' which can be used as a sed template at install time.
This will help avoid lots of merge conflicts since these header lines
contain both a date and a portage version.

14 years agoAdd a comment to make.globals noting that the preserve-libs FEATURES
Zac Medico [Mon, 30 Aug 2010 20:59:01 +0000 (13:59 -0700)]
Add a comment to make.globals noting that the preserve-libs FEATURES
setting will be commented out in versions that don't support it.

14 years agoUse _ENABLE_PRESERVE_LIBS and _ENABLE_DYN_LINK_MAP constants to control
Zac Medico [Mon, 30 Aug 2010 20:00:02 +0000 (13:00 -0700)]
Use _ENABLE_PRESERVE_LIBS and _ENABLE_DYN_LINK_MAP constants to control
instantiation of vardbapi._plib_registry and vardbapi._linkmap.

14 years agoMerge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/portage
Zac Medico [Mon, 30 Aug 2010 17:46:33 +0000 (10:46 -0700)]
Merge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/portage

14 years agoAdd some private constants for use in conditional code in order to
Zac Medico [Mon, 30 Aug 2010 17:44:29 +0000 (10:44 -0700)]
Add some private constants for use in conditional code in order to
minimize the diff between branches.

14 years agoFix typos.
Arfrever Frehtes Taifersar Arahesis [Mon, 30 Aug 2010 17:29:46 +0000 (19:29 +0200)]
Fix typos.

14 years agoAdd more new features to RELEASE-NOTES for portage-2.1.9.
Zac Medico [Mon, 30 Aug 2010 16:20:19 +0000 (09:20 -0700)]
Add more new features to RELEASE-NOTES for portage-2.1.9.

14 years agoInvert _ebuild_helpers_path EAPI conditional in ebuild.sh.
Zac Medico [Mon, 30 Aug 2010 14:27:58 +0000 (07:27 -0700)]
Invert _ebuild_helpers_path EAPI conditional in ebuild.sh.

14 years agoMerge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/portage
Zac Medico [Mon, 30 Aug 2010 14:23:53 +0000 (07:23 -0700)]
Merge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/portage

14 years agoSplit out a RELEASE-NOTES section for portage-2.1.9, composed of parts
Zac Medico [Mon, 30 Aug 2010 14:21:03 +0000 (07:21 -0700)]
Split out a RELEASE-NOTES section for portage-2.1.9, composed of parts
from the 2.2 branch.

14 years agoBug fix in canonicalize() function.
Ulrich Mueller [Mon, 30 Aug 2010 12:35:32 +0000 (14:35 +0200)]
Bug fix in canonicalize() function.

14 years agoAdd a TODO note to AbstractEbuildProcess._can_log() about adding support
Zac Medico [Mon, 30 Aug 2010 13:11:22 +0000 (06:11 -0700)]
Add a TODO note to AbstractEbuildProcess._can_log() about adding support
for logging via named pipe (fifo) for sesandbox.

14 years agoMake match_from_list() strip "!!" when appropriate for strong blocks.
Zac Medico [Mon, 30 Aug 2010 13:06:07 +0000 (06:06 -0700)]
Make match_from_list() strip "!!" when appropriate for strong blocks.

14 years agoRemove duplicate real_vardb definition from merge in action_depclean().
Zac Medico [Mon, 30 Aug 2010 13:05:07 +0000 (06:05 -0700)]
Remove duplicate real_vardb definition from merge in action_depclean().

14 years agoMerge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/portage
Zac Medico [Mon, 30 Aug 2010 13:03:46 +0000 (06:03 -0700)]
Merge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/portage

14 years agoFix "UnboundLocalError: local variable 'real_vardb' referenced before assignment".
Arfrever Frehtes Taifersar Arahesis [Mon, 30 Aug 2010 13:02:12 +0000 (15:02 +0200)]
Fix "UnboundLocalError: local variable 'real_vardb' referenced before assignment".

14 years agoFix broken reference to real_vardb in calc_depclean() from 2 commits ago.
Zac Medico [Mon, 30 Aug 2010 12:59:29 +0000 (05:59 -0700)]
Fix broken reference to real_vardb in calc_depclean() from 2 commits ago.

14 years agoFix typo in comment.
Arfrever Frehtes Taifersar Arahesis [Mon, 30 Aug 2010 12:08:09 +0000 (14:08 +0200)]
Fix typo in comment.

14 years agoBug #335242: Fix typo in emerge(1) man page.
Arfrever Frehtes Taifersar Arahesis [Mon, 30 Aug 2010 12:02:30 +0000 (14:02 +0200)]
Bug #335242: Fix typo in emerge(1) man page.

14 years agoRename the portage.sets module to portage._sets since it will be useful
Zac Medico [Mon, 30 Aug 2010 07:16:50 +0000 (00:16 -0700)]
Rename the portage.sets module to portage._sets since it will be useful
in the upcoming 2.1.9 branch which will not have sets support but will
still have the code in private and disabled form.

14 years agoAlways check if vardbapi._linkmap and vardbapi._plib_registry are
Zac Medico [Mon, 30 Aug 2010 06:49:32 +0000 (23:49 -0700)]
Always check if vardbapi._linkmap and vardbapi._plib_registry are
None before trying to use them. This will be useful in the upcoming
2.1.9 branch which will not have preserve-libs support but will
still have the code in private and disabled form.

14 years agoRename vardbapi.linkmap to vardbapi._linkmap since I'm
Zac Medico [Mon, 30 Aug 2010 06:31:47 +0000 (23:31 -0700)]
Rename vardbapi.linkmap to vardbapi._linkmap since I'm
trying to minimize the diff between the master branch and upcoming
2.1.9 branch which will not have preserve-libs support but will
still have the code in private and disabled form.

14 years agoRename vardbapi.plib_registry to vardbapi._plib_registry since I'm
Zac Medico [Mon, 30 Aug 2010 05:36:22 +0000 (22:36 -0700)]
Rename vardbapi.plib_registry to vardbapi._plib_registry since I'm
trying to minimize the diff between the master branch and upcoming
2.1.9 branch which will not have preserve-libs support but will
still have the code in private and disabled form.

14 years agoMove LinkageMap to a new portage.util._dyn_libs.LinkageMapELF module.
Zac Medico [Mon, 30 Aug 2010 03:28:45 +0000 (20:28 -0700)]
Move LinkageMap to a new portage.util._dyn_libs.LinkageMapELF module.

14 years agoMove PreservedLibsRegistry to a new portage.util._dyn_libs.PreservedLibsRegistry...
Zac Medico [Mon, 30 Aug 2010 02:48:34 +0000 (19:48 -0700)]
Move PreservedLibsRegistry to a new portage.util._dyn_libs.PreservedLibsRegistry module.

14 years agoRemove unused imports found by pylint.
Arfrever Frehtes Taifersar Arahesis [Sun, 29 Aug 2010 21:27:15 +0000 (23:27 +0200)]
Remove unused imports found by pylint.

14 years agoFix import.
Arfrever Frehtes Taifersar Arahesis [Sun, 29 Aug 2010 20:42:41 +0000 (22:42 +0200)]
Fix import.

14 years agoFix some typos.
Arfrever Frehtes Taifersar Arahesis [Sun, 29 Aug 2010 19:26:53 +0000 (21:26 +0200)]
Fix some typos.

14 years agoAdd LocationsManager.profile_and_user_locations for use with config.categories and...
Sebastian Luther [Sun, 29 Aug 2010 18:48:06 +0000 (11:48 -0700)]
Add LocationsManager.profile_and_user_locations for use with config.categories and archlist.

14 years agoMake mkrelease.sh clean up the temporary $SOURCE_DIR when finished.
Zac Medico [Sun, 29 Aug 2010 18:11:26 +0000 (11:11 -0700)]
Make mkrelease.sh clean up the temporary $SOURCE_DIR when finished.

14 years agoAdd a TODO note about replacing BlockerDB with an incremental depgraph
Zac Medico [Sun, 29 Aug 2010 18:05:20 +0000 (11:05 -0700)]
Add a TODO note about replacing BlockerDB with an incremental depgraph
for solving bug #279623.

14 years agoAdd canonicalize() function, replacement for "readlink -f". v2.2_rc72
Ulrich Mueller [Sun, 29 Aug 2010 06:26:15 +0000 (08:26 +0200)]
Add canonicalize() function, replacement for "readlink -f".

Expand symlinks in prepcompress() completely, not only to the last
directory component.

14 years agoChange a comment in prepcompress().
Ulrich Mueller [Sun, 29 Aug 2010 06:24:26 +0000 (08:24 +0200)]
Change a comment in prepcompress().

14 years agoAdd a Scheduler._running_tasks() set in order to simplify the
Zac Medico [Sun, 29 Aug 2010 00:59:54 +0000 (17:59 -0700)]
Add a Scheduler._running_tasks() set in order to simplify the
_is_work_scheduled() method.

14 years agoInside Scheduler._dependent_on_scheduled_merges(), don't traverse children
Zac Medico [Sun, 29 Aug 2010 00:10:46 +0000 (17:10 -0700)]
Inside Scheduler._dependent_on_scheduled_merges(), don't traverse children
of uninstall nodes since those aren't dependencies in the usual sense.

14 years agoBug #273633 - Add docompress docs from PMS.
Zac Medico [Sat, 28 Aug 2010 23:27:54 +0000 (16:27 -0700)]
Bug #273633 - Add docompress docs from PMS.

14 years agoUpdate copyright headers.
Ulrich Mueller [Sat, 28 Aug 2010 07:21:43 +0000 (09:21 +0200)]
Update copyright headers.

14 years agoImplement controllable compression and docompress, bug #273633.
Ulrich Mueller [Sat, 28 Aug 2010 07:20:23 +0000 (09:20 +0200)]
Implement controllable compression and docompress, bug #273633.

14 years agoMake egencache --update-use-local-desc use codecs.open() to write to
Zac Medico [Sat, 28 Aug 2010 22:51:37 +0000 (15:51 -0700)]
Make egencache --update-use-local-desc use codecs.open() to write to
use.local.desc (fixes possible unicode issues with python3).

14 years agoFor egencache --preserve-comments, probe comments in binary mode in
Zac Medico [Sat, 28 Aug 2010 22:33:49 +0000 (15:33 -0700)]
For egencache --preserve-comments, probe comments in binary mode in
order to avoid potential character encoding issues (both in terms
of decoding and in calculating file position given variable-width
character encodings like UTF-8.

14 years agoSimplify the empty USE conditional /var/db/pkg metadata code in
Zac Medico [Sat, 28 Aug 2010 22:04:01 +0000 (15:04 -0700)]
Simplify the empty USE conditional /var/db/pkg metadata code in
_post_src_install_uid_fix(), and handle one more case.

14 years agoegencache: Add comment preserving to --update-use-local-desc.
Michał Górny [Sat, 28 Aug 2010 21:59:34 +0000 (23:59 +0200)]
egencache: Add comment preserving to --update-use-local-desc.

14 years agoWhen evaluating USE conditional metadata for /var/db/pkg inside
Zac Medico [Sat, 28 Aug 2010 21:44:42 +0000 (14:44 -0700)]
When evaluating USE conditional metadata for /var/db/pkg inside
_post_src_install_uid_fix(), ensure non-empty entries are removed
if the evaluation results in an empty value.

14 years agoIf there are circular dependencies, and circular_dependency_handler
Zac Medico [Sat, 28 Aug 2010 21:21:06 +0000 (14:21 -0700)]
If there are circular dependencies, and circular_dependency_handler
doesn't have a message, eliminate root nodes before calling
digraph.debug_print(). If --debug is enabled then do this even if
circular_dependency_handler has a message.

14 years agoBug #335055 - Fix "TypeError: argument of type 'NoneType' is not
Zac Medico [Sat, 28 Aug 2010 20:39:44 +0000 (13:39 -0700)]
Bug #335055 - Fix "TypeError: argument of type 'NoneType' is not
iterable" raised from first call to VirtualsManager.get_virts_p()
when trying to expand the category for a package name.

14 years agoIn depgraph._show_unsatisfied_dep(), show some debug info if
Zac Medico [Sat, 28 Aug 2010 20:21:25 +0000 (13:21 -0700)]
In depgraph._show_unsatisfied_dep(), show some debug info if
Atom.violated_conditionals() raises InvalidAtom.

14 years agoAdd --use-local-desc-output to egencache man page.
Zac Medico [Sat, 28 Aug 2010 14:49:54 +0000 (07:49 -0700)]
Add --use-local-desc-output to egencache man page.

14 years agoSupport specifying an alternate output file for --update-use-local-desc.
Michał Górny [Sat, 28 Aug 2010 14:46:17 +0000 (16:46 +0200)]
Support specifying an alternate output file for --update-use-local-desc.

14 years agoBug #334935 - Fix broken reference to config.pmaskdict inside v2.2_rc71
Zac Medico [Sat, 28 Aug 2010 06:51:41 +0000 (23:51 -0700)]
Bug #334935 - Fix broken reference to config.pmaskdict inside
getmaskingreason().

14 years agoUse StopIteration to exit nested loops. v2.2_rc70
Zac Medico [Sat, 28 Aug 2010 02:15:50 +0000 (19:15 -0700)]
Use StopIteration to exit nested loops.

14 years agoAdd support for IUSE.missing checks in conditional USE dependencies.
Zac Medico [Sat, 28 Aug 2010 02:09:30 +0000 (19:09 -0700)]
Add support for IUSE.missing checks in conditional USE dependencies.

14 years agoAdd the chflags and selinux values to SUPPORTED_FEATURES.
Zac Medico [Fri, 27 Aug 2010 23:58:24 +0000 (16:58 -0700)]
Add the chflags and selinux values to SUPPORTED_FEATURES.

14 years agoDefine a cmp work-alike function for use in the egencache
Zac Medico [Fri, 27 Aug 2010 23:41:20 +0000 (16:41 -0700)]
Define a cmp work-alike function for use in the egencache
--update-use-local-desc code, since it's ugly to have so
many repetitions of this construct.

14 years agoMerge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/portage
Zac Medico [Fri, 27 Aug 2010 22:56:07 +0000 (15:56 -0700)]
Merge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/portage

14 years agoFix breakage caused ignorance of /etc/portage/{arch.list,categories}
Zac Medico [Fri, 27 Aug 2010 22:54:10 +0000 (15:54 -0700)]
Fix breakage caused ignorance of /etc/portage/{arch.list,categories}
config overrides.

14 years agoFix some typos.
Arfrever Frehtes Taifersar Arahesis [Fri, 27 Aug 2010 22:08:51 +0000 (00:08 +0200)]
Fix some typos.

14 years agoFix _get_legacy_global() so that it does't pass in the target_root
Zac Medico [Fri, 27 Aug 2010 21:57:58 +0000 (14:57 -0700)]
Fix _get_legacy_global() so that it does't pass in the target_root
parameter to create_trees() unless ROOT is set. This is required
for make.conf ROOT override to work with LocationsManager.

14 years agoFix the config constructor to pass missing parameters to the
Zac Medico [Fri, 27 Aug 2010 21:39:39 +0000 (14:39 -0700)]
Fix the config constructor to pass missing parameters to the
LocationsManager constructor.