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

Re: dh_installinfo not created postinst entry



Package: debhelper
Version: 2.0.86

On Wed, May 10, 2000 at 10:23:07AM -0400, Peter S Galbraith wrote:
> 
> I'm calling dh_installinfo on potato:
> 
>  dh_installinfo -a doc/gri doc/gri-? doc/gri-??
> 
> I do get files copied correctly to ./tmp/usr/share/info/ but I do
> not get an `install-info' script line added to
> debian/postinst.debhelper and debian/prerm.debhelper
> 
> The dh_installinfo man page says I should, but it doesn't say
> where the required info is gathered from (e.g. the
> debian/packagename.info file for debmake).

>From /usr/bin/dh_installinfo:

    # Only register with install-info if this is a head file in
    # a tree of info files.
    if ($file=~/\.info$/ && ! $dh{NOSCRIPTS}) {

So there's the problem: doc/gri is not considered a head file as it
doesn't end '.info'.  Maybe the following replacement for the above
would give more appropriate behaviour:

    if ($file !~ /-\d+$/ && ! $dh{NOSCRIPTS}) {

   Julian

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

  Julian Gilbey, Dept of Maths, QMW, Univ. of London. J.D.Gilbey@qmw.ac.uk
        Debian GNU/Linux Developer,  see http://www.debian.org/~jdg
  Donate free food to the world's hungry: see http://www.thehungersite.com/



Reply to: