Bug#862951: python-apt: apt.Package.mark_reinstall() missing; apt.Package.marked_reinstall doesn't work
Package: python-apt
Version: 1.4.0~beta3
Severity: normal
Dear Maintainer,
apt.Package.mark_install() is missing but apt.Package.marked_install is present.
When I mark a package for reinstallation via 'cache._depcache.set_reinstall(pkg._pkg, True)' then neither 'cache._depcache.marked_reinstall(pkg._pkg)' nor 'pkg.marked_reinstall' return True.
Furthermore on commit the package(s) marked for reinstall will be reinstalled but beforehand 'cache.get_changes()' doesn't include the package(s) marked for reinstallation.
In a nutshell it isn't easily possible to mark a package for reinstallation and once it has been marked it is impossible to check if a package has been marked for reinstallation.
Best,
Michael Schaller
-- System Information:
Debian Release: 9.0
Architecture: amd64
(x86_64)
Foreign Architectures: i386
Kernel: Linux 4.9.0-3-amd64 (SMP w/12 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
Versions of packages python-apt depends on:
ii dirmngr 2.1.18-6
ii gnupg 2.1.18-6
ii libapt-inst2.0 1.4.1
ii libapt-pkg5.0 1.4.1
ii libc6 2.24-10
ii libgcc1 1:6.3.0-16
ii libstdc++6 6.3.0-16
ii python 2.7.13-2
ii python-apt-common 1.4.0~beta3
pn python:any <none>
Versions of packages python-apt recommends:
ii iso-codes 3.75-1
ii lsb-release 9.20161125
ii xz-utils 5.2.2-1.2+b1
Versions of packages python-apt suggests:
ii apt 1.4.1
pn python-apt-dbg <none>
pn python-apt-doc <none>
-- no debconf information
Reply to: