[Simple-cdd-devel] Python modules

Vagrant Cascadian vagrant at debian.org
Thu Feb 19 17:41:53 UTC 2015


On 2015-02-18, Enrico Zini wrote:
> On Tue, Jan 27, 2015 at 08:16:35PM +0100, Enrico Zini wrote:
>
>> I'm tempted to implement __getattr__/__setattr__ magic in Environment so
>> that instead of env.get("MIRROR") we can just do env.MIRROR. That is the
>> only remaining refactoring idea that I still have, and it has been
>> kindly suggested by my typing wrists.
>
> I have now experimentally done this.
>
> env.get("var") can now be also written as env.var
>
> env.set("var", val) can now be also written as env.var = val

But not so done to have pushed it? :)


> Today I'm working with simple-cdd, so I should be able to see if
> anything breaks.

Last I tried, depending on weather it was in the environment or in a
profiles/*.conf file, the wget and reprepro hooks ignored setting
http_proxy, one of which ignored in the environment, and one ignored the
profiles/*.conf values... (and maybe one of them would ignore both if
the environment was set?)

I did a little experimenting yesterday which seemed to confirm it; don't
know if your new code would behave any different. It may be symptomatic
of a general problem, but I'd like to work around the http_proxy case
until we can get to the bottom of it...

live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/simple-cdd-devel/attachments/20150219/92ac0d3a/attachment.sig>


More information about the Simple-cdd-devel mailing list