Re: dpkg-scanlibs

2001-02-27 Thread Ethan Benson
On Tue, Feb 27, 2001 at 04:25:47PM +1100, Craig Sanders wrote: > yep. > > in pseduo-perl > > if (mtime of /var/lib/dpkg/dlocatedb < mtime of /var/lib/dpkg/status) { > system("/usr/sbin/update-dlocatedb") > } ; > # now carry on with whatever it is that needed dlocate -S to

Re: dpkg-scanlibs

2001-02-26 Thread Craig Sanders
On Mon, Feb 26, 2001 at 11:27:32PM +0900, Masato Taruishi wrote: > At Mon, 26 Feb 2001 01:49:11 -0800, > Joey Hess wrote: > > > > * Will try to use dlocate instead of dpkg -S for extra speedups > > > > Doesn't dlotate work just like locate by caching data? If so, this could > > compares the time

new dpkg-scanlibs release

2001-02-26 Thread Wichert Akkerman
Or rather, dpkg-shlibs.py as it is called now. It seems stable enough to replace dpkg-shlibdeps.pl now so I changed its name. Changes since the first version: * don't hardcode errno values anymore * pre-cache data so we only need to do one dpkg -S call for extra speedup * remove dlocate usage

Re: dpkg-scanlibs

2001-02-26 Thread Jon Nelson
> [ I hate to drag this out, but... ] > > > That is exactly my point -- every editor / personal setting will be diffe= > rent > > as to how many spaces a tab represents. > > It seems to me that this is the source of the misunderstanding. No, see below. > A tab doesn't represent spaces. It repr

Re: dpkg-scanlibs

2001-02-26 Thread Sam Couter
[ I hate to drag this out, but... ] Jon Nelson <[EMAIL PROTECTED]> wrote: > > That is exactly my point -- every editor / personal setting will be different > as to how many spaces a tab represents. It seems to me that this is the source of the misunderstanding. A tab doesn't represent spaces. I

Re: dpkg-scanlibs

2001-02-26 Thread Aaron Lehmann
On Mon, Feb 26, 2001 at 12:38:32PM +0100, Wichert Akkerman wrote: > > To return to being serious, I think that this script is short enough > > that it's not worth mandating python installation for all developers > > just to use it. It would be trivial to rewrite it in Perl. Can Python > > produce s

Re: dpkg-scanlibs

2001-02-26 Thread tony mancill
On Mon, 26 Feb 2001, Manfred Wassmann wrote: > f*** how do you call a "Ganzzahliges Vielfaches" in english -- of the "integer multiple" ... :) MfG tony -- leadership (n.) A form of self-preservation exhibited by people with auto- destructive imaginations in order to ensure that when it comes to

Re: dpkg-scanlibs

2001-02-26 Thread Manfred Wassmann
On Mon, 26 Feb 2001, Wichert Akkerman wrote: > Previously Jon Nelson wrote: > > I only see one problem with dpkg-scanlibs.py: it uses tabs > > tabs are evil, wichert! Every editor under the sun uses different tab > > settings. Use spaces, my man. > > Repeat after me: > > Tabs are good.

Re: dpkg-scanlibs

2001-02-26 Thread Jon Nelson
> On Mon, Feb 26, 2001 at 07:30:22AM -0600, Jon Nelson wrote: > > That is exactly my point -- every editor / personal setting will be > > different > > as to how many spaces a tab represents. There are many programs floating > > around (3 are shipped *with* Python) to convert tabs to N spaces (i

Re: dpkg-scanlibs

2001-02-26 Thread Masato Taruishi
At Mon, 26 Feb 2001 01:49:11 -0800, Joey Hess wrote: > > * Will try to use dlocate instead of dpkg -S for extra speedups > > Doesn't dlotate work just like locate by caching data? If so, this could > result in incorrect dependancies if two library packages contained the > same file, and you had o

Re: dpkg-scanlibs

2001-02-26 Thread Wichert Akkerman
Previously Jon Nelson wrote: > That is exactly my point -- every editor / personal setting will be different > as to how many spaces a tab represents. Right, so as long as we use just tabs everything gets whatever indent they desire (shiftwidth in vi terms). Great, isn't it? > In my editor of cho

Re: dpkg-scanlibs

2001-02-26 Thread Jon Nelson
> On Sun, Feb 25, 2001 at 10:29:43PM -0600, Jon Nelson wrote: > > Eeek! You misunderstand the root problem here, I think. > > Python uses indent level to represent blocks. If those indent levels > > are different in different editors, you *change* what the program does. > > Unlike in C, where ind

Re: dpkg-scanlibs

2001-02-26 Thread Vladimir Tamara
> "Wichert" == Wichert Akkerman <[EMAIL PROTECTED]> writes: Wichert> Previously Vladimir Tamara wrote: >> I don't know too much about licenses, and I don't know where to >> ask this. The Python license is not compatible with the GPL >> (it is published in >> http://www.gnu

Re: dpkg-scanlibs

2001-02-26 Thread Wichert Akkerman
Previously Aaron Lehmann wrote: > Would that make (*shudder*) python mandatory for people who build > packages? We already have one required crappy language in the > distribution, and I'm not convinced that it's a good idea to add yet > another. I'm not replacing it with another crappy language th

Re: dpkg-scanlibs

2001-02-26 Thread Wichert Akkerman
Previously Jon Nelson wrote: > I only see one problem with dpkg-scanlibs.py: it uses tabs > tabs are evil, wichert! Every editor under the sun uses different tab > settings. Use spaces, my man. Repeat after me: Tabs are good. Tabs tell you an indent is requested but do not forc

Re: dpkg-scanlibs

2001-02-26 Thread Wichert Akkerman
Previously Vladimir Tamara wrote: > I don't know too much about licenses, and I don't know where to ask > this. The Python license is not compatible with the GPL (it is > published in http://www.gnu.org/philosophy/license-list.html), That is a problem if you want to link python to a

Re: dpkg-scanlibs

2001-02-26 Thread Michael Neuffer
Quoting Radovan Garabik ([EMAIL PROTECTED]): > On Sun, Feb 25, 2001 at 10:29:43PM -0600, Jon Nelson wrote: > > > On Sun, Feb 25, 2001 at 10:03:58PM -0600, Jon Nelson wrote: > > > > I only see one problem with dpkg-scanlibs.py: it uses tabs > > > > tabs are evil, wichert! Every editor under the sun

Re: dpkg-scanlibs

2001-02-26 Thread Joey Hess
Wichert Akkerman wrote: > * Will try to use dlocate instead of dpkg -S for extra speedups Doesn't dlotate work just like locate by caching data? If so, this could result in incorrect dependancies if two library packages contained the same file, and you had one installed yesterday when the dlotate

Re: dpkg-scanlibs

2001-02-26 Thread Vladimir Tamara
> "Ben" == Ben Collins <[EMAIL PROTECTED]> writes: Ben> On Sun, Feb 25, 2001 at 08:22:02PM -0800, Aaron Lehmann Ben> wrote: >> To return to being serious, I think that this script is short >> enough that it's not worth mandating python installation for >> all developers ju

Re: dpkg-scanlibs

2001-02-26 Thread Radovan Garabik
On Sun, Feb 25, 2001 at 10:29:43PM -0600, Jon Nelson wrote: > > On Sun, Feb 25, 2001 at 10:03:58PM -0600, Jon Nelson wrote: > > > I only see one problem with dpkg-scanlibs.py: it uses tabs > > > tabs are evil, wichert! Every editor under the sun uses different tab > > > settings. Use spaces, my

Re: dpkg-scanlibs

2001-02-25 Thread Ben Collins
On Sun, Feb 25, 2001 at 10:29:43PM -0600, Jon Nelson wrote: > > On Sun, Feb 25, 2001 at 10:03:58PM -0600, Jon Nelson wrote: > > > I only see one problem with dpkg-scanlibs.py: it uses tabs > > > tabs are evil, wichert! Every editor under the sun uses different tab > > > settings. Use spaces, my

Re: dpkg-scanlibs

2001-02-25 Thread Ben Collins
On Sun, Feb 25, 2001 at 08:22:02PM -0800, Aaron Lehmann wrote: > > To return to being serious, I think that this script is short enough > that it's not worth mandating python installation for all developers > just to use it. It would be trivial to rewrite it in Perl. Can Python > produce small exc

Re: dpkg-scanlibs

2001-02-25 Thread Aaron Lehmann
On Sun, Feb 25, 2001 at 10:29:43PM -0600, Jon Nelson wrote: > Eeek! You misunderstand the root problem here, I think. > Python uses indent level to represent blocks. If those indent levels > are different in different editors, you *change* what the program does. > Unlike in C, where indentation d

Re: dpkg-scanlibs

2001-02-25 Thread Jon Nelson
> On Sun, Feb 25, 2001 at 10:03:58PM -0600, Jon Nelson wrote: > > I only see one problem with dpkg-scanlibs.py: it uses tabs > > tabs are evil, wichert! Every editor under the sun uses different tab > > settings. Use spaces, my man. > > That is precisely the reason that tabs should be used; so

Re: dpkg-scanlibs

2001-02-25 Thread Aaron Lehmann
On Mon, Feb 26, 2001 at 04:32:36AM +0100, Wichert Akkerman wrote: > > I just uploaded a beta-version of dpkg-scanlibs to > http://people.debian.org/~wakkerma/ . This is the python rewrite > of dpkg-shlibdeps and will replace it once I'm sure it works properly. Would that make (

Re: dpkg-scanlibs

2001-02-25 Thread Aaron Lehmann
On Sun, Feb 25, 2001 at 10:03:58PM -0600, Jon Nelson wrote: > I only see one problem with dpkg-scanlibs.py: it uses tabs > tabs are evil, wichert! Every editor under the sun uses different tab > settings. Use spaces, my man. That is precisely the reason that tabs should be used; so that people

Re: dpkg-scanlibs

2001-02-25 Thread Jon Nelson
> > I just uploaded a beta-version of dpkg-scanlibs to > http://people.debian.org/~wakkerma/ . This is the python rewrite > of dpkg-shlibdeps and will replace it once I'm sure it works properly. I only see one problem with dpkg-scanlibs.py: it uses tabs tabs are evil, wiche

dpkg-scanlibs

2001-02-25 Thread Wichert Akkerman
I just uploaded a beta-version of dpkg-scanlibs to http://people.debian.org/~wakkerma/ . This is the python rewrite of dpkg-shlibdeps and will replace it once I'm sure it works properly. Besides the fact that this code is actually commented and readable, the major changes in functionalit