[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Packages with documentation only in /usr/share/doc



On Sun, Feb 06, 2000 at 01:53:38AM +0000, Julian Gilbey wrote:
> On Sat, Feb 05, 2000 at 04:49:56PM -0500, Daniel Burrows wrote:
> > It's fairly
> > simple to write a script that at least tries to find packages that do this:
> > 
> > for i in /usr/share/doc/*; do
> >   if [ -d $i ] && ! [ -l /usr/doc/`basename $i` ]; then echo $i
> >   else; if [ -l $i && ! [ -l /usr/doc/`basename $i`]; then echo $i; fi; fi
>  [ insert a ']' after "-l $i " ]
> > done
> 
> Not so trivial.  This only tests packages on your system.  For finding
> packages which are split in their source, one could check the
> Contents-* files for packages which still store files in both.  The
> following might be culprits (not confirmed with up-to-date packages):
> 

You know you caould avoid all of the problems by moving all of /usr/doc/*
to /usr/share/doc/* then "rmdir /usr/doc; ln -s share/doc /usr/doc".

Note, the latest dpkg in potato/woody works with this setup flawlessly, I
have 10 systems setup like this right now. This all thanks to the patch
that avoids the problems that brought about the whole symlink solution
(which should be dropped for woody, IMNHO).

-- 
 -----------=======-=-======-=========-----------=====------------=-=------
/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
`     bcollins@debian.org  --  bcollins@openldap.org  --  bmc@visi.net     '
 `---=========------=======-------------=-=-----=-===-======-------=--=---'


Reply to: