Hi Helmut,

I ran some empirical tests to make sure that we solve the underlying problem 
properly.
As you say, the goal is to prevent two conflicting packages to be unpacked at 
the same time.
This is what I tried:

1. Install the present (monolithic) package in Testing: 3.2.10~ds-1
2. With dpkg, attempt to unpack a new overlapping package that has only Breaks 
and not Replaces
3. Do the same with an overlapping package that has both Breaks and Replaces

This is the specific command that I used:

dpkg --unpack netatalk-tools_4.0.0~ds-4_arm64.deb

However, with this test case, the Replaces directive did not make a difference.
In either case dpkg refused to unpack the new overlapping package.

==========
dpkg: regarding .../netatalk-tools_4.0.0~ds-4_arm64.deb containing 
netatalk-tools:
 netatalk-tools breaks netatalk (<< 4.0.0~ds-1)
  netatalk (version 3.2.10~ds-1) is present and installed.

dpkg: error processing archive ../netatalk-tools_4.0.0~ds-4_arm64.deb 
(--unpack):
 installing netatalk-tools would break netatalk, and
 deconfiguration is not permitted (--auto-deconfigure might help)
Errors were encountered while processing:
 ../netatalk-tools_4.0.0~ds-4_arm64.deb
==========

Is there any important step I'm missing here?
Or can you suggest another test case that demonstrates the invalid unpacking 
behavior when only using Breaks?

Thanks!

Daniel

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to