On Tue, Jun 22, 2021 at 07:57:13AM +0900, Hideki Yamane wrote:
> 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. 

Ah, I should have tested with apt.  I see that it works 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.

Agreed.

> > Any concerns if I drop the Breaks before the upload?
> 
>  None, please go ahead for bullseye :)

My apologies if using Breaks in this way is a common pattern.  I am
simply not familiar with it.  If you have used the pattern before, I
will upgrade the package as-is, since your way is cleaner.  Otherwise, I
will remove the Breaks.

Thank you for the response.  I will upload once I hear back from you.

Thank you!
tony

Attachment: signature.asc
Description: PGP signature

Reply via email to