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

Re: Bits from the SRM



Martin Schulze <joey@infodrom.org> wrote:

Hi,

>> > 	* Fixed postrm script to not barf on purge (closes: Bug#153718).
>> 
>> The postrm script in 5.03-1 will always return an error code ; the fix
>> is trivial, but in the meantime the package cannot be purged.
>
> From looking at the diff, you didn't change the postrm script except
> for an additional newline and a moved debhelper comment:

The #DEBHELPER# token expands to a call to db_purge (and update-menu,
but we don't care), and this call was returning an error code when
called after the font removal code which outputs one or more messages
to stdout.

When the call to db_purge is done before the font removal (thus before
output to stdout), it returns successfully and the package is purged.

> Please explain how this helps make the package purge again.

Done :)

JB.

-- 
 Julien BLACHE <jblache@debian.org>  |  Debian, because code matters more 
 Debian & GNU/Linux Developer        |        http://www.debian.org 
 Public key available on <http://www.jblache.org> - KeyID: F5D6 5169 
 GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169 



Reply to: