RepoConfigLoader: fix bug #474578
authorZac Medico <zmedico@gentoo.org>
Mon, 24 Jun 2013 19:24:39 +0000 (12:24 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 24 Jun 2013 19:24:39 +0000 (12:24 -0700)
pym/portage/repository/config.py

index 5ec8304291d884271377d12fdf5261a5505ca59d..076dceab4052f70d432a79227d755b74bb0f7656 100644 (file)
@@ -570,7 +570,8 @@ class RepoConfigLoader(object):
                for repo_name, repo in list(prepos.items()):
                        if repo.location is None:
                                if repo_name != 'DEFAULT':
-                                       if paths:
+                                       # Skip this warning for repoman (bug #474578).
+                                       if settings.local_config and paths:
                                                writemsg_level(_("Location undefined for " \
                                                        "repository '%s' referenced in '%s'\n") % \
                                                        (repo.name, paths[0]),