[Bug 1904195] Re: apt cancels holds on uninstalled packages

2020-11-16 Thread Harald van Dijk
Huh, so you can, thanks. Confirming that this works too, and agreed that that looks like it should cover all cases. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1904195 Title: apt cancels holds on

[Bug 1904195] Re: apt cancels holds on uninstalled packages

2020-11-16 Thread Julian Andres Klode
Sure you can keep versions away with pinning, you pin them to negative values, e.g. Package: idontlike Pin: version * Pin-Priority: -1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1904195 Title: a

[Bug 1904195] Re: apt cancels holds on uninstalled packages

2020-11-13 Thread Harald van Dijk
My understanding of pinning is that that can be used to specify which version to use, which is what I use it for already, but not to force no version to be used. Agreed that this is not a common use case, so low prio and not patching it till it's fixed upstream makes sense, but since it's something

[Bug 1904195] Re: apt cancels holds on uninstalled packages

2020-11-13 Thread Julian Andres Klode
I didn't remember the discussions with the dpkg maintainer about this, but I did find them now, and he basically pointed at the same thing. Anyway, this is not a common use case, so there's no point adding an extra delta here. Use pinning in apt instead. -- You received this bug notification bec

[Bug 1904195] Re: apt cancels holds on uninstalled packages

2020-11-13 Thread Julian Andres Klode
Yes, but that's really something for dpkg upstream to look at, and not something we should patch out downstream. ** No longer affects: apt (Ubuntu) ** Changed in: dpkg (Ubuntu) Importance: Undecided => Low ** Changed in: dpkg (Ubuntu) Status: New => Triaged -- You received this bug n

[Bug 1904195] Re: apt cancels holds on uninstalled packages

2020-11-13 Thread Harald van Dijk
You're right btw that it's a dpkg bug, but it's a bit more subtle. The cleanup that dpkg performs after installation is meant to preserve the hold state for non-installed packages. This is handled by the pkg_is_informative function, which classifies everything with "pkg->want != PKG_WANT_UNKNOWN" a

[Bug 1904195] Re: apt cancels holds on uninstalled packages

2020-11-13 Thread Harald van Dijk
Whether it's a bug in apt or in something used by apt doesn't really make a difference from an end user perspective. Can this bug be reopened as a dpkg bug, then, or should I report that as a new bug? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscrib

[Bug 1904195] Re: apt cancels holds on uninstalled packages

2020-11-13 Thread Julian Andres Klode
This is not a bug in apt. dpkg cleans up its database and removes hold states for non-installed packages following an operation. ** Changed in: apt (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.