[Pkg-cups-devel] Bug#552389: Bug#552389: cups-pdf: wrong check for 'removing' in postinst script

Martin-Éric Racine q-funk at iki.fi
Mon Oct 26 09:09:57 UTC 2009


On Mon, Oct 26, 2009 at 10:55 AM, Eugene V. Lyubimkin <jackyf at debian.org> wrote:
> Martin-Éric Racine wrote:
>> On Sun, Oct 25, 2009 at 11:50 PM, Eugene V. Lyubimkin <jackyf at debian.org> wrote:
>>> Package: cups-pdf
>>> Severity: normal
>>>
>>> >From the postinst script:
>>>
>>> -8<-
>>> case "$1" in
>>>      configure|removing)
>>> ->8-
>>>
>>> Postinst script never get 'removing' as the first argument.
>>
>>>From http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html
>>
>> * deconfigured's-postinst abort-deconfigure in-favour
>> failed-install-package version [removing conflicting-package version]
>>
>> 'removing' very much appears there.
>>
> As sixth parameter, so 'case $1' will never match it.

Ah, right.  Fix pending.

They really need to rewrite that section of Policy as an HTML table,
showing all the parameters in the right order. The current bulleted
list is a PITA to read. :)

Martin-Éric





More information about the Pkg-cups-devel mailing list