public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Étienne Buira" <etienne.buira@gmail.com>
To: gentoo-portage-dev@lists.gentoo.org
Subject: Re: [gentoo-portage-dev] [PATCH] conf: Enable to set rsync extra opts per repository
Date: Thu, 18 Jun 2015 23:32:27 +0200	[thread overview]
Message-ID: <20150618213227.GA17153@rcKGHUlyQfVFW> (raw)
In-Reply-To: <20150617133217.303b3b68.dolsen@gentoo.org>

Hi, thank you for reviewing

On Wed, Jun 17, 2015 at 01:32:17PM -0700, Brian Dolbec wrote:
> Be aware that I have not read over the diff very much yet.  
> 
> On Wed, 17 Jun 2015 20:40:30 +0200
> Étienne Buira <etienne.buira@gmail.com> wrote:
> 
> > diff --git a/pym/portage/package/ebuild/config.py
> > b/pym/portage/package/ebuild/config.py index 3a4007b..08db363 100644
> > --- a/pym/portage/package/ebuild/config.py
> > +++ b/pym/portage/package/ebuild/config.py
> > @@ -515,6 +515,8 @@ class config(object):
> >  				v = confs.get("SYNC")
> >  				if v is not None:
> >  					portdir_sync = v
> > +				if 'PORTAGE_RSYNC_EXTRA_OPTS' in
> > confs:
> > +
> > self['PORTAGE_RSYNC_EXTRA_OPTS'] = confs['PORTAGE_RSYNC_EXTRA_OPTS'] 
> >  			self["PORTDIR"] = portdir
> >  			self["PORTDIR_OVERLAY"] = portdir_overlay
> 
> Not sure why ebuild/config.py needs changes... will look at it more

For the same reason the same thing is done about ['SYNC']: forwarding
its value to RepoConfigLoader.__init__ settings argument.

> > diff --git a/pym/portage/repository/config.py
> > b/pym/portage/repository/config.py index b7c969d..196b87a 100644
> > --- a/pym/portage/repository/config.py
> > +++ b/pym/portage/repository/config.py
> 
> 
> This approach is not wanted, it means hard coding any sync module
> options in the main loader that might be sync-type specific.
> 
> We want to make it generic so any arbitrary sync-type options (more
> than the base required options) can be added for any module without the
> need to change this. Those options are not used anywhere else other
> than the sync module.

Ok, patchset follows.

> One method might be to replace the copying of the configparser options
> into python variables.  Instead change it to look for the option in the
> configparser instance.  And only maintain some base options or
> functions which pull from the config instance.

Not sure i understood what you meant, nor how that would look like,
please explain if patchset is not oked.

Regards.
 


  reply	other threads:[~2015-06-18 21:32 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-17 18:40 [gentoo-portage-dev] [PATCH] conf: Enable to set rsync extra opts per repository Étienne Buira
2015-06-17 20:32 ` Brian Dolbec
2015-06-18 21:32   ` Étienne Buira [this message]
2015-07-06 18:28     ` Brian Dolbec
2015-07-06 22:05       ` Brian Dolbec
2015-07-08 17:45       ` Étienne Buira
2015-07-08 17:46         ` [gentoo-portage-dev] [PATCH v3 1/2] sync: allow sync modules to have specific options Étienne Buira
2015-07-08 17:46           ` [gentoo-portage-dev] [PATCH v3 2/2] sync: Enable to set rsync extra opts per repository Étienne Buira
2015-07-14 19:52             ` [gentoo-portage-dev] [PATCH] RsyncSync: don't pass None sync-rsync-extra-opts value into shlex_split Zac Medico
2015-07-14 19:56               ` [gentoo-portage-dev] " Zac Medico
2015-07-14 20:04                 ` Brian Dolbec
2015-07-14 21:35                   ` Brian Dolbec
2015-07-21 17:18                     ` Étienne Buira
2015-06-18 21:36   ` [gentoo-portage-dev] [PATCH v2 1/2] sync: allow sync modules to have specific options Étienne Buira
2015-06-18 21:36     ` [gentoo-portage-dev] [PATCH v2 2/2] sync: Enable to set rsync extra opts per repository Étienne Buira

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150618213227.GA17153@rcKGHUlyQfVFW \
    --to=etienne.buira@gmail.com \
    --cc=gentoo-portage-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox