Nicer output for bad overlay msg
authorRob Cakebread <pythonhead@gentoo.org>
Sat, 26 Jul 2008 21:03:06 +0000 (21:03 +0000)
committerRob Cakebread <pythonhead@gentoo.org>
Sat, 26 Jul 2008 21:03:06 +0000 (21:03 +0000)
git-svn-id: http://g-pypi.googlecode.com/svn/trunk@11 118783bc-b352-0410-bbc3-0f610f6f7ae8

g_pypi/ebuild.py

index 408d0d300018c2750178c8fbd3bead8714f9b375..b2749d05d671dbfbbf1e51cab1c85f076aae77ba 100755 (executable)
@@ -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']