summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2015-05-31 05:25:45 -0400
committerMike Frysinger <vapier@google.com>2015-05-31 05:25:45 -0400
commitd2a748f8f5cbf339055022f9506f3aebfb22b40a (patch)
tree035d430d4588ecc834dfe040f6f114d24bbf43b8
parent0500934333267d7aac7d33e41cd4e83e56d8e339 (diff)
downloadportage-d2a748f8f5cbf339055022f9506f3aebfb22b40a.tar.gz
config: skip missing profiles/repo_name warning when using layout.conf:repo-name
The repo name is considered missing if there is no explicit "repo_name" file. But if it's set in layout.conf via repo-name, we can skip that. Otherwise we end up with copy & paste spew. BUG=b:20895978 Change-Id: I0ef4ff773e1d666b1e9d1b06b1191ce6b3755806
-rw-r--r--usr/lib/portage/pym/portage/repository/config.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/lib/portage/pym/portage/repository/config.py b/usr/lib/portage/pym/portage/repository/config.py
index 5e0d055..24c3112 100644
--- a/usr/lib/portage/pym/portage/repository/config.py
+++ b/usr/lib/portage/pym/portage/repository/config.py
@@ -233,6 +233,7 @@ class RepoConfig(object):
# useful when having two copies of the same repo enabled
# to avoid modifying profiles/repo_name in one of them
self.name = layout_data['repo-name']
+ self.missing_repo_name = False
for value in ('allow-missing-manifest',
'allow-provide-virtual', 'cache-formats',