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

2009-10-26 Thread Martin-Éric Racine
On Sun, Oct 25, 2009 at 11:50 PM, Eugene V. Lyubimkin  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.



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



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

2009-10-26 Thread Eugene V. Lyubimkin
Martin-Éric Racine wrote:
> On Sun, Oct 25, 2009 at 11:50 PM, Eugene V. Lyubimkin  
> 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.

-- 
Eugene V. Lyubimkin aka JackYF, JID: jackyf.devel(maildog)gmail.com
C++/Perl developer, Debian Developer



signature.asc
Description: OpenPGP digital signature


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

2009-10-26 Thread Martin-Éric Racine
On Mon, Oct 26, 2009 at 10:55 AM, Eugene V. Lyubimkin  wrote:
> Martin-Éric Racine wrote:
>> On Sun, Oct 25, 2009 at 11:50 PM, Eugene V. Lyubimkin  
>> 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



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org