On 2016-08-14 11:13, Ritesh Raj Sarraf wrote:
> Hello Andreas,
> 
> 
> Thanks for the bug report.
> 
> On Thu, 2016-08-11 at 15:55 +0200, Andreas Beckmann wrote:
>> during a test with piuparts I noticed your package failed to purge due
>> to a command not found. According to policy 7.2 you cannot rely on the
>> depends being available during purge, only the essential packages are
>> available for sure.
> 
> 
> Yes. This looks very odd. And the english is not very clear.
> It says, "but the depended-on package is more likely to be available if the
> package declares a dependency".
> 
> The dependency is well defined in dict-gcide. But the above statement of "more
> likely" is to be satisfied by whom. 

You have to distinguish two ways the postrm is being called:
* postrm remove (at this point the dependencies are still available)
* postrm purge (at this point the the dependencies may have been long gone)

> How is the installation done in piuparts ?

install depends(package)
install package
remove package
remove depends(package)
purge depends(package)
purge package

That's the worst-case purge ordering.

> The removal below shows dpkg being invoked directly. So, does dpkg honor the
> package relationships ?

dpkg --purge ... is only called after apt-get remove ... at a point
where no package relationships exist any more.


Andreas

Reply via email to