[gentoo-portage-dev] unsubscribe

2008-11-23 Thread Lanza Fabrizio
AVVISO DI RISERVATEZZA Informazioni riservate possono essere contenute nel messaggio o nei suoi allegati. Se non siete i destinatari indicati nel messaggio, o responsabili per la sua consegna alla persona, o se avete ricevuto il messaggio per errore, siete pregati di non trascriverlo, copia

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

2008-11-23 Thread Duncan
devsk <[EMAIL PROTECTED]> posted [EMAIL PROTECTED], excerpted below, on Sun, 23 Nov 2008 21:01:40 -0800: > Why is a portage daemon such a bad thing? Or hard to do? I would very > much like a daemon running on my system which I can configure to sync > the portage tree once a week (or month if I am

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

2008-11-23 Thread Marius Mauch
On Sun, 23 Nov 2008 21:01:40 -0800 (PST) devsk <[EMAIL PROTECTED]> wrote: > > not relying on custom system daemonsrunning in the background. > > Why is a portage daemon such a bad thing? Or hard to do? I would very > much like a daemon running on my system which I can configure to sync > the port

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

2008-11-23 Thread devsk
> not relying on custom system daemonsrunning in the background. Why is a portage daemon such a bad thing? Or hard to do? I would very much like a daemon running on my system which I can configure to sync the portage tree once a week (or month if I am lazy), give me a summary of hot fixes, secur

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

2008-11-23 Thread Marius Mauch
On Sun, 23 Nov 2008 07:17:40 -0500 "Emma Strubell" <[EMAIL PROTECTED]> wrote: > However, I've started looking at the code, and I must admit I'm pretty > overwhelmed! I don't know where to start. I was wondering if anyone > on here could give me a quick overview of how the search function > current

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

2008-11-23 Thread tvali
There is daemon, which notices about filesystem changes - http://pyinotify.sourceforge.net/ would be a good choice. In case many different applications use portage tree directly without using any portage API (which is a bad choice, I think, and should be deprecated), then there is a kind of "hack"

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

2008-11-23 Thread René 'Necoro' Neumann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike Auty schrieb: > Finally there are overlays, and since these can change outside of an > "emerge --sync" (as indeed can the main tree), you'll have to reindex > these before each search request, or give the user stale data until they > manually

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

2008-11-23 Thread Mike Auty
Hiya Emma, Good luck on your project. A couple of things to be weary of are disk I/O, metadata cache backends and overlays. Disk I/O can be a significant bottleneck. Loading up a lot of files from disk (be it the metadata cache or whatever) can take a long time initially, but then be cached

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

2008-11-23 Thread tvali
Yes if it would be a low-level implementation to portage, speeding up it's native code for searching and using indexes, then it would make everything faster, including emerge (because emerge does search first for package relations). I have actually wanted to do it myself several years ago, so react

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

2008-11-23 Thread Emma Strubell
Wow, that's extremely helpful!! I happen to particularly enjoy tries, so the suffix trie sounds like a great idea. The trie class example is really helpful too, because this will be my first time programming in Python, and it's a bit easier to figure out what's going on syntax-wise in that simple t

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

2008-11-23 Thread Lucian Poston
> Thanks for the replies! I know there are a couple programs out there that > basically already do what I'm looking to do... Unfortunately I wasn't aware > of these pre-existing utilities until after I submitted my project proposal > to my professor. So, I'm looking to implement a better search mys

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

2008-11-23 Thread Douglas Anderson
Emma, It would be great it you could speed search up a bit! As these other guys have pointed out, we do have some indexing tools in Gentoo already. Most users don't understand why that kind of functionality isn't built directly into Portage, but IIRC it has something to do with the fact that thes

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

2008-11-23 Thread Emma Strubell
Thanks for the replies! I know there are a couple programs out there that basically already do what I'm looking to do... Unfortunately I wasn't aware of these pre-existing utilities until after I submitted my project proposal to my professor. So, I'm looking to implement a better search myself. Pre

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

2008-11-23 Thread Pacho Ramos
El dom, 23-11-2008 a las 16:01 +0200, tvali escribió: > Try esearch. > > emerge esearch > esearch ... > > 2008/11/23 Emma Strubell <[EMAIL PROTECTED]> > Hi everyone. My name is Emma, and I am completely new to this > list. I've been using Gentoo since 2004, including Portage of >

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

2008-11-23 Thread tvali
Try esearch. emerge esearch esearch ... 2008/11/23 Emma Strubell <[EMAIL PROTECTED]> > Hi everyone. My name is Emma, and I am completely new to this list. I've > been using Gentoo since 2004, including Portage of course, and before I say > anything else I'd like to say thanks to everyone for suc

[gentoo-portage-dev] search functionality in emerge

2008-11-23 Thread Emma Strubell
Hi everyone. My name is Emma, and I am completely new to this list. I've been using Gentoo since 2004, including Portage of course, and before I say anything else I'd like to say thanks to everyone for such a kickass package management system!! Anyway, for my final project in my Data Structures &