From: Brian Dolbec <dolsen@gentoo.org>
To: gentoo-portage-dev@lists.gentoo.org
Subject: Re: [gentoo-portage-dev] [PATCH 1/2] As per bug #472104 add option --verbose-slot-rebuilds=y|n
Date: Sun, 23 Feb 2014 10:39:17 -0800 [thread overview]
Message-ID: <20140223103917.3116a872.dolsen@gentoo.org> (raw)
In-Reply-To: <530A308A.8000309@gmx.de>
On Sun, 23 Feb 2014 18:31:54 +0100
Sebastian Luther <SebastianLuther@gmx.de> wrote:
> Am 23.02.2014 09:07, schrieb Brian Dolbec:
> > ---
> > pym/_emerge/actions.py | 5 +++++
> > pym/_emerge/depgraph.py | 5 +++--
> > pym/_emerge/main.py | 5 +++++
> > pym/portage/package/ebuild/config.py | 3 +++
> > 4 files changed, 16 insertions(+), 2 deletions(-)
> >
> > diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
> > index 95c5c14..a3f7813 100644
> > --- a/pym/_emerge/actions.py
> > +++ b/pym/_emerge/actions.py
> > @@ -2923,6 +2923,11 @@ def adjust_config(myopts, settings):
> > settings["PORTAGE_VERBOSE"] = "1"
> > settings.backup_changes("PORTAGE_VERBOSE")
> >
> > + if ("--verbose-slot-rebuilds" in myopts and
> > + myopts["--verbose-slot-rebuilds"] not in ("y","True")):
> > + settings["VERBOSE_SLOT_REBUILDS"] = "0"
> > + settings.backup_changes("VERBOSE_SLOT_REBUILDS")
>
> Why do you put that into the config class? In the resolver you should
> just do:
> if "--verbose-slot-rebuilds" in self._frozen_config.myopts:
>
> Otherwise looks good.
>
It is a command line option. This is where all the other command line
options were defined. How else is a user going to toggle the option?
And here I was worried about where to define the default... since it
needs to be defined depgraph.py, I ended up putting it in
pym/portage/package/ebuild/config.py. That seemed to be the default config.
But since depgraph.py is an _emerge namespace lib, if there is a better
place for it. Please speak up.
--
Brian Dolbec <dolsen>
next prev parent reply other threads:[~2014-02-23 18:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-23 8:07 [gentoo-portage-dev] Brian Dolbec
2014-02-23 8:07 ` [gentoo-portage-dev] [PATCH 1/2] As per bug #472104 add option --verbose-slot-rebuilds=y|n Brian Dolbec
2014-02-23 17:31 ` Sebastian Luther
2014-02-23 18:39 ` Brian Dolbec [this message]
2014-02-23 8:07 ` [gentoo-portage-dev] [PATCH 2/2] Whitespace cleanup Brian Dolbec
2014-02-23 19:25 ` [gentoo-portage-dev] [PATCH v2 0/2] As per bug #472104 add option --verbose-slot-rebuilds=y|n Brian Dolbec
2014-02-23 19:25 ` [gentoo-portage-dev] [PATCH v2 1/2] " Brian Dolbec
2014-02-23 19:25 ` [gentoo-portage-dev] [PATCH v2 2/2] Whitespace cleanup Brian Dolbec
2014-02-23 20:02 ` [gentoo-portage-dev] [As per bug #472104 add option --verbose-slot-rebuilds Brian Dolbec
2014-02-23 20:02 ` [gentoo-portage-dev] [As per bug #472104 add option --verbose-slot-rebuildsAs per bug #472104 add option --verbose-slot-rebuilds=y|n Brian Dolbec
2014-02-23 20:02 ` [gentoo-portage-dev] [As per bug #472104 add option --verbose-slot-rebuildsWhitespace cleanup Brian Dolbec
2014-02-23 22:21 ` [gentoo-portage-dev] [As per bug #472104 add option --verbose-slot-rebuilds Sebastian Luther
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=20140223103917.3116a872.dolsen@gentoo.org \
--to=dolsen@gentoo.org \
--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