public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] [PATCH] sync: include metadata/layout.conf with profile submodule (bug 559122)
@ 2015-08-29 19:57 Zac Medico
  2015-08-30 20:08 ` Brian Dolbec
  0 siblings, 1 reply; 2+ messages in thread
From: Zac Medico @ 2015-08-29 19:57 UTC (permalink / raw
  To: gentoo-portage-dev; +Cc: Zac Medico

Since metadata/layout.conf settings such as profile-formats affect the
interpretation of profiles, make the profiles submodule include this
file (which is all that's needed for a minimal binhost client).

X-Gentoo-Bug: 559122
X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=559122
---
 pym/portage/sync/__init__.py | 6 +++---
 pym/portage/sync/syncbase.py | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/pym/portage/sync/__init__.py b/pym/portage/sync/__init__.py
index 32b2c45..805b1f2 100644
--- a/pym/portage/sync/__init__.py
+++ b/pym/portage/sync/__init__.py
@@ -9,9 +9,9 @@ from portage.sync.controller import SyncManager
 from portage.sync.config_checks import check_type
 
 _SUBMODULE_PATH_MAP = OrderedDict([
-	('glsa', 'metadata/glsa'),
-	('news', 'metadata/news'),
-	('profiles', 'profiles'),
+	('glsa', ('metadata/glsa',)),
+	('news', ('metadata/news',)),
+	('profiles', ('metadata/layout.conf', 'profiles')),
 ])
 
 path = os.path.join(os.path.dirname(__file__), "modules")
diff --git a/pym/portage/sync/syncbase.py b/pym/portage/sync/syncbase.py
index d30d69d..6aaa9c4 100644
--- a/pym/portage/sync/syncbase.py
+++ b/pym/portage/sync/syncbase.py
@@ -99,7 +99,7 @@ class SyncBase(object):
 		emerge_config = self.options.get('emerge_config')
 		if emerge_config is not None:
 			for name in emerge_config.opts.get('--sync-submodule', []):
-				paths.append(_SUBMODULE_PATH_MAP[name])
+				paths.extend(_SUBMODULE_PATH_MAP[name])
 		return tuple(paths)
 
 
-- 
2.4.6



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

* Re: [gentoo-portage-dev] [PATCH] sync: include metadata/layout.conf with profile submodule (bug 559122)
  2015-08-29 19:57 [gentoo-portage-dev] [PATCH] sync: include metadata/layout.conf with profile submodule (bug 559122) Zac Medico
@ 2015-08-30 20:08 ` Brian Dolbec
  0 siblings, 0 replies; 2+ messages in thread
From: Brian Dolbec @ 2015-08-30 20:08 UTC (permalink / raw
  To: gentoo-portage-dev

On Sat, 29 Aug 2015 12:57:27 -0700
Zac Medico <zmedico@gentoo.org> wrote:

> Since metadata/layout.conf settings such as profile-formats affect the
> interpretation of profiles, make the profiles submodule include this
> file (which is all that's needed for a minimal binhost client).
> 
> X-Gentoo-Bug: 559122
> X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=559122
> ---
>  pym/portage/sync/__init__.py | 6 +++---
>  pym/portage/sync/syncbase.py | 2 +-
>  2 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/pym/portage/sync/__init__.py
> b/pym/portage/sync/__init__.py index 32b2c45..805b1f2 100644
> --- a/pym/portage/sync/__init__.py
> +++ b/pym/portage/sync/__init__.py
> @@ -9,9 +9,9 @@ from portage.sync.controller import SyncManager
>  from portage.sync.config_checks import check_type
>  
>  _SUBMODULE_PATH_MAP = OrderedDict([
> -	('glsa', 'metadata/glsa'),
> -	('news', 'metadata/news'),
> -	('profiles', 'profiles'),
> +	('glsa', ('metadata/glsa',)),
> +	('news', ('metadata/news',)),
> +	('profiles', ('metadata/layout.conf', 'profiles')),
>  ])
>  
>  path = os.path.join(os.path.dirname(__file__), "modules")
> diff --git a/pym/portage/sync/syncbase.py
> b/pym/portage/sync/syncbase.py index d30d69d..6aaa9c4 100644
> --- a/pym/portage/sync/syncbase.py
> +++ b/pym/portage/sync/syncbase.py
> @@ -99,7 +99,7 @@ class SyncBase(object):
>  		emerge_config = self.options.get('emerge_config')
>  		if emerge_config is not None:
>  			for name in
> emerge_config.opts.get('--sync-submodule', []):
> -
> paths.append(_SUBMODULE_PATH_MAP[name])
> +
> paths.extend(_SUBMODULE_PATH_MAP[name]) return tuple(paths)
>  
>  

also looks good :)

-- 
Brian Dolbec <dolsen>



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

end of thread, other threads:[~2015-08-30 20:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-29 19:57 [gentoo-portage-dev] [PATCH] sync: include metadata/layout.conf with profile submodule (bug 559122) Zac Medico
2015-08-30 20:08 ` Brian Dolbec

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