summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-10-26 22:52:04 -0700
committerZac Medico <zmedico@gentoo.org>2011-10-26 22:52:04 -0700
commit5c216774ac90ef5d1cba6fc000baa546e7834945 (patch)
treeccd83ad12c5e5c2a3e83caba8333fa29cd2fb2c7
parent15bf7c846d9437be76584e106d527f51a5af9d1e (diff)
downloadportage-5c216774ac90ef5d1cba6fc000baa546e7834945.tar.gz
portage-5c216774ac90ef5d1cba6fc000baa546e7834945.tar.bz2
portage-5c216774ac90ef5d1cba6fc000baa546e7834945.zip
repoman: add opts and repo config debug output
-rwxr-xr-xbin/repoman3
-rw-r--r--pym/portage/repository/config.py14
2 files changed, 17 insertions, 0 deletions
diff --git a/bin/repoman b/bin/repoman
index bf91b85a9..8adccc774 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -654,6 +654,9 @@ if vcs is None:
# TODO: shouldn't this just be switched on the repo, iso the VCS?
check_changelog = options.echangelog not in ('y', 'force') and vcs in ('cvs', 'svn')
+logging.debug("repo config: %s" % (repo_config,))
+logging.debug("options: %s" % (options,))
+
# Generate an appropriate PORTDIR_OVERLAY value for passing into the
# profile-specific config constructor calls.
env = os.environ.copy()
diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py
index 5659b14da..ab679f6fb 100644
--- a/pym/portage/repository/config.py
+++ b/pym/portage/repository/config.py
@@ -21,6 +21,7 @@ from portage.const import (MANIFEST2_HASH_FUNCTIONS, MANIFEST2_REQUIRED_HASH,
from portage.env.loaders import KeyValuePairFileLoader
from portage.util import normalize_path, writemsg, writemsg_level, shlex_split
from portage.localization import _
+from portage import _unicode_decode
from portage import _unicode_encode
from portage import _encodings
from portage import manifest
@@ -234,6 +235,19 @@ class RepoConfig(object):
repo_msg.append("")
return "\n".join(repo_msg)
+ def __str__(self):
+ d = {}
+ for k in self.__slots__:
+ d[k] = getattr(self, k, None)
+ return _unicode_decode(str(d))
+
+ if sys.hexversion < 0x3000000:
+
+ __unicode__ = __str__
+
+ def __str__(self):
+ return _unicode_encode(self.__unicode__())
+
class RepoConfigLoader(object):
"""Loads and store config of several repositories, loaded from PORTDIR_OVERLAY or repos.conf"""