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

Bug#530501: "command not found" during purge



tags 530501 pending
thanks

On Mon, May 25, 2009 at 10:07:01AM +0200, Holger Levsen wrote:
> during a test with piuparts I noticed a "command not found" during purge, the 
> relevant lines from the attached logfile (scroll down to the end) are:
> 
> 1m32.0s DEBUG: Starting command: 
> ['chroot', '/org/piuparts.debian.org/tmp/tmpNVi_v3', 'dpkg', '--purge', 'openssh-client']
> 1m32.1s DUMP: 
>   (Reading database ... 5840 files and directories currently installed.)
>   Removing openssh-client ...
>   Purging configuration files for openssh-client ...
>   /var/lib/dpkg/info/openssh-client.postrm: line 34: delgroup: command not 
> found
> 1m32.1s DEBUG: Command ok: 
> ['chroot', '/org/piuparts.debian.org/tmp/tmpNVi_v3', 'dpkg', '--purge', 'openssh-client']
> 
> As there were no groups left on the system after purge and the exit status was 
> also ok, I only file this with "normal" severity, though I (lazyly without 
> investigating myself ;) wonder why this is the case :-)

It doesn't rely on it - it calls it if it can, but ignores errors,
precisely so that it doesn't fail if delgroup is absent. I suppose I'll
make it check whether delgroup is present before doing this, though.

Thanks,

-- 
Colin Watson                                       [cjwatson@debian.org]




Reply to: