From: Rob Cakebread Date: Sat, 26 Jul 2008 21:03:06 +0000 (+0000) Subject: Nicer output for bad overlay msg X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8057909dd14ee140be7ac04f21e8178f05198feb;p=g-pypi.git Nicer output for bad overlay msg git-svn-id: http://g-pypi.googlecode.com/svn/trunk@11 118783bc-b352-0410-bbc3-0f610f6f7ae8 --- diff --git a/g_pypi/ebuild.py b/g_pypi/ebuild.py index 408d0d3..b2749d0 100755 --- a/g_pypi/ebuild.py +++ b/g_pypi/ebuild.py @@ -66,7 +66,6 @@ class Ebuild: self.pypi_pkg_name = up_pn self.config = MyConfig.config self.options = MyConfig.options - #self.logger = MyConfig.logger self.logger = logging.getLogger("g-pypi") self.metadata = None self.unpacked_dir = None @@ -482,8 +481,10 @@ class Ebuild: if overlays.has_key(overlay_name): overlay_path = overlays[overlay_name] else: - self.logger.error("Couldn't find overylay by that name. I know about these:") - self.logger.error(overlays) + self.logger.error("Couldn't find overylay/repository by that"+ + " name. I know about these:") + for repo in sorted(overlays.keys()): + self.logger.error(" " + repo.ljust(18) + overlays[repo]) sys.exit(1) else: overlay_path = self.config['overlay']