On May 12, 2005, at 11:57 PM, Dave Vasilevsky wrote:


On May 12, 2005, at 11:31 PM, Daniel Johnson wrote:

I've written an info file mdimporter. It doesn't use fink or perl at all;


Yeah, dmacks showed this to me a bit ago. It's very nice. But I guess I just think it would be nicer to have the mdimporter actually use Fink. This would be good for packages that use name- munging (ie: variants), and also because of the potential for background Fink indexing.

The version I linked to is newer than the one I originally emailed - seed about. It now lists some metadata in Finder preview panes.


Unfortunately, Spotlight only understands files, so just extracting info from fink won't work. That's why iCal has to create a folder full of files, one for each event, so Spotlight can index them even though iCal actually uses a database. Besides, running fink (which would also bring in perl) would likely slow down indexing a lot.

I looked at doing an importer for deb files, but it's complicated because you need un-ar, un-gzip, AND un-tar (as far as I can tell) to get at the metadata. mdimporters need to be small and fast; all that overhead could be an issue. I didn't try it, so maybe it's not that bad--I'm just guessing.


Er, it's best if you can just use dpkg-deb. Perhaps an executable could be included using some install_name_tool magic (or a static executable).

You're still running an external tool and it still needs to do those steps. I'm worried it would really slow down Spotlight; importers have to be very lightweight. Maybe I'll try to do one and see what happens.


--
Daniel Johnson
[EMAIL PROTECTED]
PGP public key: http://homepage.mac.com/danielj7/publickey.txt



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to