[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#868032: python3-apt: InstallProgress doesn't call overridden methods



Package: python3-apt
Version: 1.4.0~beta3+b1
Severity: normal

I can't get this to work:

class InstallProgress(apt.progress.base.InstallProgress):
    def conffile(self, current, new):
        super().conffile(current, new)
        print("conffile")

    def error(self, pkg, errormsg):
        super().error(pkg, errormsg)
        print("error")

    def processing(self, pkg, stage):
        super().processing(pkg, stage)
        print("processing")

    def dpkg_status_change(self, pkg, status):
        super().dpkg_status_change(pkg, status)
        print("dpkg_status_change")

    def start_update(self):
        super().start_update()
        print("start_update")

    def finish_update(self):
        super().finish_update()
        print("finish_update")

This is what it shows:

start_update
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 668129 files and directories currently installed.)
Preparing to unpack .../rkhunter_1.4.4-2_all.deb ...
Unpacking rkhunter (1.4.4-2) over (1.4.4-1) ...
Setting up rkhunter (1.4.4-2) ...
Installing new version of config file /etc/rkhunter.conf ...
Processing triggers for man-db (2.7.6.1-2) ...
finish_update



-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (800, 'testing'), (600, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.11.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python3-apt depends on:
ii  libapt-inst2.0     1.5~beta1
ii  libapt-pkg5.0      1.5~beta1
ii  libc6              2.24-12
ii  libgcc1            1:7.1.0-9
ii  libstdc++6         7.1.0-9
ii  python-apt-common  1.4.0~beta3
ii  python3            3.5.3-3

Versions of packages python3-apt recommends:
ii  iso-codes    3.75-1
ii  lsb-release  9.20161125

Versions of packages python3-apt suggests:
ii  apt              1.5~beta1
pn  python-apt-doc   <none>
pn  python3-apt-dbg  <none>

-- no debconf information


Reply to: