diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-09-21 11:40:20 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-09-21 11:40:20 -0700 |
commit | a574fd9e6f81a0a072cbaf34c6bd45ad7942cc94 (patch) | |
tree | a52424bccc8b4634f2a27b5b66f52c0102762925 | |
parent | d1ea4ac22b9b972b684c379434d2a1b8e5f9d933 (diff) | |
download | portage-a574fd9e6f81a0a072cbaf34c6bd45ad7942cc94.tar.gz portage-a574fd9e6f81a0a072cbaf34c6bd45ad7942cc94.tar.bz2 portage-a574fd9e6f81a0a072cbaf34c6bd45ad7942cc94.zip |
Add _DEPCLEAN_LIB_CHECK_DEFAULT constant.
This will allow for the option to be available in the stable branch
without changing the default --depclean behavior.
-rw-r--r-- | pym/_emerge/actions.py | 4 | ||||
-rw-r--r-- | pym/portage/const.py | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index 9a023a84a..8e75dad46 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -31,7 +31,7 @@ from portage import shutil from portage import eapi_is_supported, _unicode_decode from portage.cache.cache_errors import CacheError from portage.const import GLOBAL_CONFIG_PATH -from portage.const import _ENABLE_DYN_LINK_MAP +from portage.const import _ENABLE_DYN_LINK_MAP, _DEPCLEAN_LIB_CHECK_DEFAULT from portage.dbapi.dep_expand import dep_expand from portage.dbapi._expand_new_virt import expand_new_virt from portage.dep import Atom @@ -941,7 +941,7 @@ def calc_depclean(settings, trees, ldpath_mtimes, if cleanlist and \ real_vardb._linkmap is not None and \ - myopts.get("--depclean-lib-check") != "n" and \ + myopts.get("--depclean-lib-check", _DEPCLEAN_LIB_CHECK_DEFAULT) != "n" and \ "preserve-libs" not in settings.features: # Check if any of these packages are the sole providers of libraries diff --git a/pym/portage/const.py b/pym/portage/const.py index 49a14d3ab..1e3da36f2 100644 --- a/pym/portage/const.py +++ b/pym/portage/const.py @@ -167,6 +167,7 @@ if "PORTAGE_OVERRIDE_EPREFIX" in os.environ: # Private constants for use in conditional code in order to minimize the diff # between branches. _ENABLE_DYN_LINK_MAP = True +_DEPCLEAN_LIB_CHECK_DEFAULT = True _ENABLE_PRESERVE_LIBS = True _ENABLE_REPO_NAME_WARN = True _ENABLE_SET_CONFIG = True |