public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] [PATCH] config: skip missing profiles/repo_name warning when using layout.conf:repo-name
@ 2015-05-14 10:50 Mike Frysinger
  2015-05-14 18:43 ` Brian Dolbec
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Frysinger @ 2015-05-14 10:50 UTC (permalink / raw
  To: gentoo-portage-dev; +Cc: Bertrand Simonnet

From: Bertrand Simonnet <bsimonnet@chromium.org>

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.
---
 pym/portage/repository/config.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py
index e44b619..7401b3a 100644
--- a/pym/portage/repository/config.py
+++ b/pym/portage/repository/config.py
@@ -252,6 +252,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',
-- 
2.4.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [gentoo-portage-dev] [PATCH] config: skip missing profiles/repo_name warning when using layout.conf:repo-name
  2015-05-14 10:50 [gentoo-portage-dev] [PATCH] config: skip missing profiles/repo_name warning when using layout.conf:repo-name Mike Frysinger
@ 2015-05-14 18:43 ` Brian Dolbec
  2015-05-14 23:01   ` Mike Frysinger
  0 siblings, 1 reply; 4+ messages in thread
From: Brian Dolbec @ 2015-05-14 18:43 UTC (permalink / raw
  To: gentoo-portage-dev

On Thu, 14 May 2015 06:50:42 -0400
Mike Frysinger <vapier@gentoo.org> wrote:

> From: Bertrand Simonnet <bsimonnet@chromium.org>
> 
> 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.
> ---
>  pym/portage/repository/config.py | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/pym/portage/repository/config.py
> b/pym/portage/repository/config.py index e44b619..7401b3a 100644
> --- a/pym/portage/repository/config.py
> +++ b/pym/portage/repository/config.py
> @@ -252,6 +252,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',

Yeah, merge please

Wasn't there a bug for this?  If there is pleas add the bug # to the
commit message
-- 
Brian Dolbec <dolsen>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-portage-dev] [PATCH] config: skip missing profiles/repo_name warning when using layout.conf:repo-name
  2015-05-14 18:43 ` Brian Dolbec
@ 2015-05-14 23:01   ` Mike Frysinger
  2015-05-21  4:09     ` Mike Frysinger
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Frysinger @ 2015-05-14 23:01 UTC (permalink / raw
  To: gentoo-portage-dev

[-- Attachment #1: Type: text/plain, Size: 503 bytes --]

On 14 May 2015 11:43, Brian Dolbec wrote:
> On Thu, 14 May 2015 06:50:42 -0400 Mike Frysinger wrote:
> > 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.
> 
> Yeah, merge please
> 
> Wasn't there a bug for this?  If there is pleas add the bug # to the
> commit message

i'm not seeing one ... searched for "repo-name" and "repo_name" ...
-mike

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-portage-dev] [PATCH] config: skip missing profiles/repo_name warning when using layout.conf:repo-name
  2015-05-14 23:01   ` Mike Frysinger
@ 2015-05-21  4:09     ` Mike Frysinger
  0 siblings, 0 replies; 4+ messages in thread
From: Mike Frysinger @ 2015-05-21  4:09 UTC (permalink / raw
  To: gentoo-portage-dev

[-- Attachment #1: Type: text/plain, Size: 603 bytes --]

On 14 May 2015 19:01, Mike Frysinger wrote:
> On 14 May 2015 11:43, Brian Dolbec wrote:
> > On Thu, 14 May 2015 06:50:42 -0400 Mike Frysinger wrote:
> > > 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.
> > 
> > Yeah, merge please
> > 
> > Wasn't there a bug for this?  If there is pleas add the bug # to the
> > commit message
> 
> i'm not seeing one ... searched for "repo-name" and "repo_name" ...

i've pushed this as-is then
-mike

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-05-21  4:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-14 10:50 [gentoo-portage-dev] [PATCH] config: skip missing profiles/repo_name warning when using layout.conf:repo-name Mike Frysinger
2015-05-14 18:43 ` Brian Dolbec
2015-05-14 23:01   ` Mike Frysinger
2015-05-21  4:09     ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox