On Friday 18 November 2005 12:36, Zac Medico wrote:
> Marius Mauch wrote:
> > I think the point is more with a) temporary enabling/disabling of
> > sections and b) sharing sections. Having multiple files those situations
> > are a bit easier to handle.
> > Shouldn't be too hard offhand, basically
> > if isdir(foo):
> >     for x in listdir(foo):
> >         mylines.extend(grabfile(x))
> > else:
> >     mylines = grabfile(foo)
>
> Okay, I wrote a small patch that handles everything supported by
> /etc/portage except bashrc (package.mask, package.unmask, package.keywords,
> package.use, mirrors, categories).  I tested it by moving
> /etc/portage/package* into /etc/portage/includes/test/ and it seems to have
> behaved expectedly.  Feedback is welcome and appreciated. ;)

I'd add a full_paths.sort() to subdir_paths() to ensure that 01-kde, 
02-server, 03-whatever goes in the intended order but other than that it 
looks like you've pretty much got it. :)

--
Jason Stubbs
-- 
gentoo-portage-dev@gentoo.org mailing list

Reply via email to