Received Tue 08 May 2007 6:18am +1000 from Reuben Thomas: > On Mon, 7 May 2007, Graham Williams wrote: > > >I'm not sure that the apt-file functionality provides anything more > >than what is already in wajig? The locate functionality is called > >"whichpkg" in wajig (and perhaps I'll alias it to locate). Is there > >other functionality you were looking for that apt-file provides and > >wajig does not? > > Most obviously, disconnected operation. I'm on a train without internet at > the moment, and obtain: > > $ wajig whichpkg /usr/bin/snd > JIG Warning: Could not contact the Debian server at > packages.debian.org > Perhaps it is down or you are not connected to the network. > JIG will continue to try to get the information required. > > File Path Package > ===========================================================-================= > $ apt-file search /usr/bin/snd > csound: usr/bin/sndinfo > samplerate-programs: usr/bin/sndfile-resample > snd-gtk: usr/bin/snd > sndfile-programs: usr/bin/sndfile-convert > sndfile-programs: usr/bin/sndfile-info > sndfile-programs: usr/bin/sndfile-play > sndfile-programs: usr/bin/sndfile-regtest > > Also, as with various other functions, it seems better for wajig to > delegate. There's less chance of things going wrong, for the user to be > surprised because wajig gives a different result from some other tool that > ought to be equivalent, or for you to be tempted to paper over cracks in > Debian's administration interface by implementing functionality in wajig > that ought to have some lower-level equivalent.
Thanks for that Reuben. It makes a lot of sense on both counts. Indeed, wajig was really only meant to be a wrapper around other functionality! I think I will replace the whichpkg and locate functionality with apt-file. Regards, Graham -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]