public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] [PATCH] sync: fix module_names enumeration
@ 2015-01-17 13:16 Michał Górny
  2015-01-17 22:41 ` Zac Medico
  2015-01-18  9:49 ` Brian Dolbec
  0 siblings, 2 replies; 4+ messages in thread
From: Michał Górny @ 2015-01-17 13:16 UTC (permalink / raw
  To: gentoo-portage-dev; +Cc: Michał Górny

Fix module_names enumeration to consider all modules. Before, the first
module on the list was omitted ('cvs' in this case).

Another thing is, the CVS module is completely, utterly and inevitably
broken. And the whole syncing thing is a great pile of terribly
mis-designed, unnecessarily complex code which can't work unless it is
worked around like git module does...
---
 pym/portage/sync/controller.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pym/portage/sync/controller.py b/pym/portage/sync/controller.py
index 9001298..3d217db 100644
--- a/pym/portage/sync/controller.py
+++ b/pym/portage/sync/controller.py
@@ -119,7 +119,7 @@ class SyncManager(object):
 		self.callback = callback or self._sync_callback
 		self.repo = repo
 		self.exitcode = 1
-		if repo.sync_type in self.module_names[1:]:
+		if repo.sync_type in self.module_names:
 			tasks = [self.module_controller.get_class(repo.sync_type)]
 		else:
 			msg = "\n%s: Sync module '%s' is not an installed/known type'\n" \
-- 
2.2.1



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

* Re: [gentoo-portage-dev] [PATCH] sync: fix module_names enumeration
  2015-01-17 13:16 [gentoo-portage-dev] [PATCH] sync: fix module_names enumeration Michał Górny
@ 2015-01-17 22:41 ` Zac Medico
  2015-01-18  9:49 ` Brian Dolbec
  1 sibling, 0 replies; 4+ messages in thread
From: Zac Medico @ 2015-01-17 22:41 UTC (permalink / raw
  To: gentoo-portage-dev; +Cc: Michał Górny

On 01/17/2015 05:16 AM, Michał Górny wrote:
> Fix module_names enumeration to consider all modules. Before, the first
> module on the list was omitted ('cvs' in this case).
> 
> Another thing is, the CVS module is completely, utterly and inevitably
> broken. And the whole syncing thing is a great pile of terribly
> mis-designed, unnecessarily complex code which can't work unless it is
> worked around like git module does...
> ---
>  pym/portage/sync/controller.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

LGTM, except this commit message is not a proper place to rant about
stuff...
-- 
Thanks,
Zac


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

* Re: [gentoo-portage-dev] [PATCH] sync: fix module_names enumeration
  2015-01-17 13:16 [gentoo-portage-dev] [PATCH] sync: fix module_names enumeration Michał Górny
  2015-01-17 22:41 ` Zac Medico
@ 2015-01-18  9:49 ` Brian Dolbec
  2015-01-18 10:32   ` Michał Górny
  1 sibling, 1 reply; 4+ messages in thread
From: Brian Dolbec @ 2015-01-18  9:49 UTC (permalink / raw
  To: gentoo-portage-dev

On Sat, 17 Jan 2015 14:16:43 +0100
Michał Górny <mgorny@gentoo.org> wrote:

> Fix module_names enumeration to consider all modules. Before, the
> first module on the list was omitted ('cvs' in this case).
> 
> Another thing is, the CVS module is completely, utterly and inevitably
> broken. And the whole syncing thing is a great pile of terribly
> mis-designed, unnecessarily complex code which can't work unless it is
> worked around like git module does...
> ---


Really???  this just shows how immature you really are.  This type of
commit message does not belong in __ANY__ repo, therefore this is
rejected.


>  pym/portage/sync/controller.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/pym/portage/sync/controller.py
> b/pym/portage/sync/controller.py index 9001298..3d217db 100644
> --- a/pym/portage/sync/controller.py
> +++ b/pym/portage/sync/controller.py
> @@ -119,7 +119,7 @@ class SyncManager(object):
>  		self.callback = callback or self._sync_callback
>  		self.repo = repo
>  		self.exitcode = 1
> -		if repo.sync_type in self.module_names[1:]:
> +		if repo.sync_type in self.module_names:
>  			tasks =
> [self.module_controller.get_class(repo.sync_type)] else:
>  			msg = "\n%s: Sync module '%s' is not an
> installed/known type'\n" \

thanks for the one line patch.  It was something I missed removing when
I first ported the controller module from the emaint one which
pre-pends an 'all' to the list.

-- 
Brian Dolbec <dolsen>



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

* Re: [gentoo-portage-dev] [PATCH] sync: fix module_names enumeration
  2015-01-18  9:49 ` Brian Dolbec
@ 2015-01-18 10:32   ` Michał Górny
  0 siblings, 0 replies; 4+ messages in thread
From: Michał Górny @ 2015-01-18 10:32 UTC (permalink / raw
  To: Brian Dolbec; +Cc: gentoo-portage-dev

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

Dnia 2015-01-18, o godz. 01:49:16
Brian Dolbec <dolsen@gentoo.org> napisał(a):

> > Fix module_names enumeration to consider all modules. Before, the
> > first module on the list was omitted ('cvs' in this case).
> > 
> > Another thing is, the CVS module is completely, utterly and inevitably
> > broken. And the whole syncing thing is a great pile of terribly
> > mis-designed, unnecessarily complex code which can't work unless it is
> > worked around like git module does...
> > ---  
> 
> 
> Really???  this just shows how immature you really are.  This type of
> commit message does not belong in __ANY__ repo, therefore this is
> rejected.

This was intended for the mailing list, not the commit message.

-- 
Best regards,
Michał Górny

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 949 bytes --]

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

end of thread, other threads:[~2015-01-18 10:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-17 13:16 [gentoo-portage-dev] [PATCH] sync: fix module_names enumeration Michał Górny
2015-01-17 22:41 ` Zac Medico
2015-01-18  9:49 ` Brian Dolbec
2015-01-18 10:32   ` Michał Górny

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