Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Zac Medico <zmedico@g.o>
Subject: Re: comprehensive eclass checking in repoman
Date: Thu, 24 May 2012 13:28:46 -0700
On 05/24/2012 01:19 PM, Mike Frysinger wrote:
> On Thursday 24 May 2012 16:12:35 Kent Fredric wrote:
>> Were it me, I'd have a tool that scrapes the eclass files's
>> documentation and emits a .json file which repoman can then optionally
>> use for consistency checks.
> 
> python provides its own pickling system.  no need to add yet another layer.

Python's json module is similar to the pickly module, so you might just
use that instead. For example, I've converted /var/cache/edb/mtimedb
from pickle to json:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=848da97a64b2d3d13c3fbc794c57dae714009854

>> Mostly because I don't like the idea of repoman re-probing all the
>> eclasses every time you check an ebuild
> 
> caching of data most likely will be done (the decision will be data driven), 
> but that's independent of the underlying behavioral question.

I expect that reading and validating the cache is probably not going to
be much faster than just parsing the eclasses over again.
-- 
Thanks,
Zac


Replies:
Re: comprehensive eclass checking in repoman
-- Kent Fredric
References:
comprehensive eclass checking in repoman
-- Mike Frysinger
Re: comprehensive eclass checking in repoman
-- Kent Fredric
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: comprehensive eclass checking in repoman
Next by thread:
Re: comprehensive eclass checking in repoman
Previous by date:
Re: comprehensive eclass checking in repoman
Next by date:
Re: comprehensive eclass checking in repoman


Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.