Re: [gentoo-portage-dev] equery: RFC and code review

2009-02-12 Thread René 'Necoro' Neumann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian Harring schrieb: On Wed, Feb 11, 2009 at 11:10:43PM -0800, Alec Warner wrote: belongs.py has this gem: q.append(('^' if query[0] == '/' else '/') + re.escape(query) + '$') Also a python2.6 only feature... ~brian python-2.5 it is ...

Re: [gentoo-portage-dev] equery: RFC and code review

2009-02-12 Thread Douglas Anderson
On Thu, Feb 12, 2009 at 4:10 PM, Alec Warner anta...@gentoo.org wrote: I think one of the major things that annoyed me when reading the code is that you did add a new option parser...and you added it about a dozen times...(regexp used to basically find the start of the same code block over and

Re: [gentoo-portage-dev] How to hardmask all ebuilds from an overlay?

2009-02-12 Thread Pacho Ramos
El jue, 12-02-2009 a las 10:22 -0800, Zac Medico escribió: Currently, the simplest solution might be to use an rsync command to sync the specific packages that you want (or exclude the unwanted packages) to a separate directory, and put the separate directory in PORTDIR_OVERLAY instead of the

Re: [gentoo-portage-dev] search functionality in emerge

2009-02-12 Thread René 'Necoro' Neumann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, has your project resulted in anything? :) Just curios about perhaps nice portage additions ;) Regards, Necoro Emma Strubell schrieb: Hi everyone. My name is Emma, and I am completely new to this list. I've been using Gentoo since 2004,

Fwd: [gentoo-portage-dev] search functionality in emerge

2009-02-12 Thread Emma Strubell
Hi! So, my project did result in... something. Nothing too impressive, though. My implementation of search ended up being about the same speed as the current implementation because of the pickle module. I finished my project at the very last minute before it was due, so I didn't have time to find

Re: Fwd: [gentoo-portage-dev] search functionality in emerge

2009-02-12 Thread Mike Auty
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Emma Strubell wrote: There must be a faster python pickler out there, though, any recommendations? Right off the bat, you might try cPickle. It should work identically, just faster. Also you can try importing psyco, if it's present it will try

Re: Fwd: [gentoo-portage-dev] search functionality in emerge

2009-02-12 Thread Emma Strubell
Oh, I meant to say, I was indeed using cPickle. That was my first thought as well, that for some reason pickle was being loaded instead of cPickle, but no. On Thu, Feb 12, 2009 at 4:05 PM, Mike Auty ike...@gentoo.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Emma Strubell wrote: