On Tue, Jan 24, 2006 at 06:00:28PM +0100, Frank Lichtenheld wrote: > On Sat, Nov 12, 2005 at 03:18:01AM -0800, Steve Langasek wrote: > > # Now: See if it is in this package. See if it is in any other package. > > sub searchdir { > > my $dir = shift; > > if(opendir(DIR, $dir)) { > > my @dirents = readdir(DIR); > > closedir(DIR); > > for (@dirents) { > > if ( -f "$dir/$_/DEBIAN/shlibs" ) { > > push(@curshlibs, "$dir/$_/DEBIAN/shlibs"); > > next; > > } elsif ( $_ !~ /^\./ && -d "$dir/$_" && ! -l "$dir/$_" ) { > > &searchdir("$dir/$_"); > > } > > } > > } > > }
> > This function apparently isn't content to look for > > debian/$pkg/DEBIAN/shlibs; it feels a need to look for things like > > debian/xfonts-75dpi-transcoded/usr/X11R6/lib/X11/fonts/75dpi/helvB24-ISO8859-9.pcf.gz/DEBIAN/shlibs > > as well. > To account for more interesting ideas that maintainers could have I > would propose the following compromise: Replace the elsif line with > } elsif ( ! -e "$dir/$_/DEBIAN" && !~ /^\./ && -d "$dir/$_" && ! -l "$dir/$_" > ) { > This at least eliminates the search within the packages that have no > shlibs file which should be the major cause for massive recursion. Could you comment on what "interesting ideas" maintainers would have that are worth supporting here? :) -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. [EMAIL PROTECTED] http://www.debian.org/
signature.asc
Description: Digital signature