Bug#930653: libapt-pkg-perl: Port to apt 1.9.0

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#930653: libapt-pkg-perl: Port to apt 1.9.0

Julian Andres Klode-4
Package: libapt-pkg-perl
Version: 0.1.34
Severity: normal
Tags: patch
User: [hidden email]
Usertags: origin-ubuntu eoan ubuntu-patch
Control: user [hidden email]
Control: usertag -1 apt-1.9.0

Ports libapt-pkg-perl to apt 1.9.0 (coming soon to experimental), this

removes:

- IsOk() method of a PkgFileIterator
- GetMatch() method of a Policy
- GetPriority(Package) of Policy

adds:

- GetPriority(Version) of Policy

An alternative would be to do no-ops for IsOk(),
GetMatch(), and GetPriority(Package), returning true,
no version, and 0 (or priority of candidate) respectively;
but we removed those variants in APT; so it's probably
best to follow along.

Thanks for considering the patch.

-- System Information:
Debian Release: buster/sid
  APT prefers eoan
  APT policy: (991, 'eoan'), (500, 'eoan'), (500, 'cosmic-security')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.0.0-15-generic (SMP w/8 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

--
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en

libapt-pkg-perl_0.1.34ubuntu1.debdiff (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#930653: libapt-pkg-perl: Port to apt 1.9.0

Brendan O'Dea
On Mon, Jun 17, 2019 at 06:47:53PM +0200, Julian Andres Klode wrote:
>Package: libapt-pkg-perl
>Version: 0.1.34

>Ports libapt-pkg-perl to apt 1.9.0 (coming soon to experimental), this
>
>removes:
>
>- IsOk() method of a PkgFileIterator
>- GetMatch() method of a Policy
>- GetPriority(Package) of Policy
>
>adds:
>
>- GetPriority(Version) of Policy

Thanks, I'm uploading 0.1.35 now to unstable which should address these changes.

Tested against apt 1.8.2 (unstable) and 1.9.1 (experimental).

--bod