Re: aclocal/dirlist

Stepan Kasal <[email protected]>
Newsgroups gmane.linux.distributions.rock.devel
Message-ID <[email protected]>
Hello,

On Sat, Oct 15, 2005 at 04:35:01AM +0200, Stefan Fiedler wrote:
> Am Freitag 14 Oktober 2005 10:50 schrieb Stepan Kasal:
> > In the first loop the hash gets paths with leading slash, while in the
> > second one without it.
> 
> Thanks for noting. I fixed it in 
> https://www.rocklinux.net/submaster/smadm.cgi?i=2005101503151913953

thanks.

> > I suggest to change the second loop to:
> >
> > 	match($0, "^(/opt/[^/]+/share/aclocal)(/|$)", a) && ! (a[1] in have) {
> > 		print "Adding entry " a[1] " to " dirlist " ..."
> > 		print a[1] >>dirlist
> > 		have[a[1]]
> >
> > I think this should work, since all_installed lists the files with the
> > leading slash.
> 
> Afaics files are listed without a leading slash.

AFAICS, they are listed with the leading slash.

/sbin/postinstall.sh, alias package/base/sysfiles/sbin_postinstall.sh
contains:

all_installed() {
        while read dummy M; do
                [ -e "/$M" ] && echo "/$M"
	done < <(cat ...|grep "$1") | sort -u
}

And I think it's better to use the ^ at the beginning, to make sure that

	/usr/share/doc/autobook/example/opt/hello/share/aclocal/

doesn't add /opt/hello/share/aclocal/ to the dirlist file.

Thank you again for all your work on this.

Stepan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.