Hi, On Mon, 21 Jun 2021 11:52:14 -0700 tony mancill <tmanc...@debian.org> wrote: > I saw the note in the changelog that Breaks is in fact there to remove > the empty package, but it's not happening for me when I try to upgrade > locally. My test case is to install uima-utils (which will install > libuima-adapter-soap-java via Recommends) and then try to upgrade the > binaries to 2.10.2-4 using dpkg.
Well, it would remove libuima-adapter-soap-java if I've tested it on chroot env as below. # apt install /tmp/libuima-core-java_2.10.2-4_all.deb (snip) The following packages will be REMOVED: libuima-adapter-soap-java The following packages will be upgraded: libuima-core-java 1 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. Need to get 0 B/1513 kB of archives. After this operation, 12.3 kB disk space will be freed. > The only way I can make this work is remove libuima-adapter-soap-java > manually. Are you sure that Breaks is necessary? apt-get autoremove > will clean up libuima-adapter-soap-java at some point. Okay, libuima-adapter-soap-java is empty now, just manual autoremove is fine. > I took a look at policy to see if Breaks + Replaces should be used in > this situation, but I'm not sure it really applies (although I think it > would work better than just Breaks). Still, I'm unsure about the need > for Breaks for this empty package clean-up use case. I don't think "Replaces" to be used in this situation since it does not provide any fuctions as same as previous one. > Any concerns if I drop the Breaks before the upload? None, please go ahead for bullseye :) -- Regards, Hideki Yamane henrich @ debian.org/iijmio-mail.jp