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

RE: lintian complains about unknown control files



On 03-Sep-2000 Domenico Andreoli wrote:
> package i maintain (hping2) now uses debconf to ask a question. in order
> to make it do this, i had to use debian/config and debian/templates files.
> 
> everything works very well, but lintian complains about unknown control
> files referring to debian/config and debian/templates. i obtain these
> complains both on potato and woody, both of them are completely up to
> date to today archives. moreover, hping2 source packages generate only
> a binary package, so for sure i have no messes with control file names.
> 
> i don't see anything wrong, i follow completely the debconf tutorial
> written by joey hess. at least i think.
> 

as joey says, this is a spurious message.  Need to get policy fixed.

> btw, now that i think at it, you know debian/config file? yeah, it has
> the first command line parameter that is "configure" or "reconfigure". the
> second is the version of the package and it is present only if debian/config
> happens to be executed by dpkg-reconfigure. is it right to think that if
> $1=="configure" => $2="" and if $1=="reconfigure" =>
> $2="some_package_version"?
> in which case i should care about $1 and/or $2? at the moment i completely
> ignore them, since debconf asks only whether hping2 should be installed as
> suid or not.
> 

I hope you mean you code would like like:

if [ "$1" = "configure" ]; then
  do_configure
fi

the double '==' is a bash-ism not supported by POSIX shell.



Reply to: