Control: severity -1 minor
Control: retitle -1 dpkg: --clear-selections marks unknown packages for 
deinstall

Hi!

On Tue, 2019-04-23 at 01:55:17 +0800, 積丹尼 Dan Jacobson wrote:
> Package: dpkg
> Version: 1.19.6
> Severity: wishlist
> File: /usr/share/man/man1/dpkg.1.gz

> Man page says
> 
>   --clear-selections
> 
>               Set the requested state of every non-essential package to 
> deinstall
>               (since dpkg 1.13.18). This is intended to be used
>               immediately before --set-selections, to deinstall any
>               packages not in list given to --set-selections.
> 
> OK but isn't there little point in dragging in uninstalled packages into
> the status file?

Right, this looks like a bug, I've fixed it now locally, targetting
1.20.x. It's very much inconsequential though, as all those selections
should disappear on the next operation, as they are requesting to
deinstall not-installed packages.

> (P.S., better be ready to restore via status.old after trying this,
> else e.g.,
> # aptitude full-upgrade
> E: Cannot remove aptitude within aptitude
> E: Problem parsing '/var/lib/aptitude//pkgstates', is it corrupt or 
> malformed? You can try to recover from '/var/lib/aptitude//pkgstates.old'.)

Well, sure, I'd have thought the description is pretty clear about
this, as it says explicitly that it will mark everything for removal,
and to be used before a --set-selections which might also be partial.

Thanks,
Guillem

Reply via email to