public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Zac Medico <zmedico@gentoo.org>
To: "Michał Górny" <mgorny@gentoo.org>,
	gentoo-portage-dev@lists.gentoo.org,
	"Alexander Berntsen" <bernalex@gentoo.org>
Subject: Re: [gentoo-portage-dev] How do we want to deal with Arfrever's bunch of patches?
Date: Sun, 13 Dec 2015 13:34:49 -0800	[thread overview]
Message-ID: <566DE479.9060102@gentoo.org> (raw)
In-Reply-To: <566DA3A7.4060403@gentoo.org>

On 12/13/2015 08:58 AM, Zac Medico wrote:
> On 12/13/2015 04:58 AM, Michał Górny wrote:
>>>> 39d81c5 portage.package.ebuild.config.config.__getitem__(): Partially drop backward compatibility for nonexistent keys.
>>>>
>>>> Maybe keep it but needs someone smarter than me to review.  
>>>
>>> Looks good, except the last hunk seems redundant because "for x in self"
>>> should only yield valid keys:
>>>
>>> @@ -2697,7 +2714,9 @@ class config(object):
>>>  		for x in self:
>>>  			if x in environ_filter:
>>>  				continue
>>> -			myvalue = self[x]
>>> +			myvalue = self.get(x)
>>> +			if myvalue is None:
>>> +				continue
>>
>> Could you fix it then, please?
> 
> Fixed:
> 
> https://gitweb.gentoo.org/proj/portage.git/commit/?id=6ba56ad7be84b18dcbf15e8c6b283f5a9a559123
> 

I've also fixed a blanket except clause from the same commit, so it will
raise BaseException (like SystemExit and KeyboardInterrupt):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=ee7978914f27c6a48cd1d6ee2667470aed25687f

-- 
Thanks,
Zac


  reply	other threads:[~2015-12-13 21:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-12 12:01 [gentoo-portage-dev] How do we want to deal with Arfrever's bunch of patches? Alexander Berntsen
2015-12-12 14:50 ` Michał Górny
2015-12-12 20:44   ` Zac Medico
2015-12-13 12:58     ` Michał Górny
2015-12-13 16:58       ` Zac Medico
2015-12-13 21:34         ` Zac Medico [this message]
2015-12-14 13:08           ` Alexander Berntsen

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=566DE479.9060102@gentoo.org \
    --to=zmedico@gentoo.org \
    --cc=bernalex@gentoo.org \
    --cc=gentoo-portage-dev@lists.gentoo.org \
    --cc=mgorny@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