Your message dated Sun, 22 Jan 2023 11:49:02 +0000
with message-id <e1pjyqm-00fbqj...@fasolo.debian.org>
and subject line Bug#1029294: fixed in dnf-plugins-core 4.3.1-3
has caused the Debian Bug report #1029294,
regarding dnf-plugins-core reposync plugin requires a higher version of dnf
package
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1029294: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029294
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: dnf-plugins-core
Version: 4.3.1-2~bpo11+1
Severity: important
X-Debbugs-Cc: taok...@outlook.com
Dear Maintainer,
dnf-plugins-core provides a reposync implementation as the alternative of the
nonexist package yum-utils.
In /usr/lib/python3/dist-packages/dnf-plugins/reposync.py, it calls:
```
base._download_remote_payloads(payloads, drpm, progress, None, False)
```
However, in dnf 4.5.2, the current version in bullseye and bookworm, this
function only takes 4 positional arguments:
(/usr/lib/python3/dist-packages/dnf/base.py)
```
def _download_remote_payloads(self, payloads, drpm, progress, callback_total):
```
In dnf 4.14.0, the current version in sid, it takes 5 positional arguments:
```
def _download_remote_payloads(self, payloads, drpm, progress, callback_total,
fail_fast=True):
```
Thus the reposync plugin may not be usable in bookworm (and
bullseye-backports): You may meet following backtrace:
```
Traceback (most recent call last):
File "/usr/bin/dnf", line 58, in <module>
main.user_main(sys.argv[1:], exit_code=True)
File "/usr/lib/python3/dist-packages/dnf/cli/main.py", line 201, in user_main
errcode = main(args)
File "/usr/lib/python3/dist-packages/dnf/cli/main.py", line 67, in main
return _main(base, args, cli_class, option_parser_class)
File "/usr/lib/python3/dist-packages/dnf/cli/main.py", line 106, in _main
return cli_run(cli, base)
File "/usr/lib/python3/dist-packages/dnf/cli/main.py", line 122, in cli_run
cli.run()
File "/usr/lib/python3/dist-packages/dnf/cli/cli.py", line 1167, in run
return self.command.run()
File "/usr/lib/python3/dist-packages/dnf-plugins/reposync.py", line 157, in
run
self.download_packages(pkglist)
File "/usr/lib/python3/dist-packages/dnf-plugins/reposync.py", line 306, in
download_packages
base._download_remote_payloads(payloads, drpm, progress, None, False)
TypeError: _download_remote_payloads() takes 5 positional arguments but 6 were
given
```
For reproducing this bug, I created a config file (k8s.conf):
```
[main]
keepcache=0
cachedir=/tmp/
[kubernetes-el7-x86_64]
name=kubernetes-el7-x86_64
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
repo_gpgcheck=0
gpgcheck=0
enabled=1
```
And then:
```
dnf reposync -a x86_64 -c k8s.conf --delete -p /path/to/packages
```
Although I'm using the backported version of dnf-plugins-core, it's certain
that this bug should also affects bookworm (testing).
-- System Information:
Debian Release: 11.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.0.0-0.deb11.6-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages dnf-plugins-core depends on:
ii dnf 4.5.2-6
ii python3 3.9.2-3
ii python3-dbus 1.2.16-5
ii python3-dnf 4.5.2-6
dnf-plugins-core recommends no packages.
dnf-plugins-core suggests no packages.
-- Configuration Files:
/etc/dnf/plugins/local.conf changed [not included]
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: dnf-plugins-core
Source-Version: 4.3.1-3
Done: Aron Xu <a...@debian.org>
We believe that the bug you reported is fixed in the latest version of
dnf-plugins-core, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1029...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Aron Xu <a...@debian.org> (supplier of updated dnf-plugins-core package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Sun, 22 Jan 2023 19:21:34 +0800
Source: dnf-plugins-core
Architecture: source
Version: 4.3.1-3
Distribution: unstable
Urgency: medium
Maintainer: Aron Xu <a...@debian.org>
Changed-By: Aron Xu <a...@debian.org>
Closes: 1029290 1029294
Changes:
dnf-plugins-core (4.3.1-3) unstable; urgency=medium
.
* d/control: depend on required modules explictly (Closes: #1029290)
* add patch to make reposync compatible with older dnf (Closes: #1029294)
Checksums-Sha1:
37f806111595261fb8b94e26e2bd3c69df98123b 1647 dnf-plugins-core_4.3.1-3.dsc
ff2e373cfdddd7530b057ded5af11868275e4adb 4196
dnf-plugins-core_4.3.1-3.debian.tar.xz
2efd2587898b6acb7d6b2d7f8f9d722f192513ed 7754
dnf-plugins-core_4.3.1-3_source.buildinfo
Checksums-Sha256:
844cfea1fff9dfd2ebf9f56534058b784c6bf10f4976fdd9b0d3fb7d3ffae55c 1647
dnf-plugins-core_4.3.1-3.dsc
2f04603a7edc68d824461f5e942b409931c5648c7a99c84b279e0c5ed6461275 4196
dnf-plugins-core_4.3.1-3.debian.tar.xz
4b66143b099418fc6fa8ddc5951767ef50f354825ae81d1c345bc93e71bfe36f 7754
dnf-plugins-core_4.3.1-3_source.buildinfo
Files:
5d0dcbfa100663112832d7fc9450910c 1647 admin optional
dnf-plugins-core_4.3.1-3.dsc
52c1a742e96139cd18af8772b653a47b 4196 admin optional
dnf-plugins-core_4.3.1-3.debian.tar.xz
53df36ae8014c28c1d871a398022e87d 7754 admin optional
dnf-plugins-core_4.3.1-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCAAdFiEEhhz+aYQl/Bp4OTA7O1LKKgqv2VQFAmPNHHIACgkQO1LKKgqv
2VT54wgAikuQzLcZ6OybsovOJEP0tIdaiFdQzTYxVG7x8DO+Hpd4PXEliRnXeMil
yGPSxEr8vSWLNIgVEwoADZdWR05nLrxE/Vqmk7LKkrJQ8kqnobwyPNDdgHPMv0QE
wA9mEAhL0na0IByQtX7zLZom3thVBx2cL1BClQbZIfy3YwA+eCoZD1WefnK8euCd
t2OReUsPkQSBN++QnvuEU64BTYE2TyNHwnLRORjYRiEo2hn4smbhWrP+NyzQtrhY
EOoTA4sbauujiKpJigriBEjuZcg7SPIbdEl30ON2gEbTGa/1PBdMVvn0mj8ldu2S
5Liv+WEVsdnP4A/bwDDYlKy016pCeg==
=Z8MY
-----END PGP SIGNATURE-----
--- End Message ---