The command dnf download ignores install_weak_deps=0.
Why:
Download plugin contains code:
def _get_packages_with_deps(self, pkg_specs, source=False):
"""Get packages matching pkg_specs and the deps."""
...
rc = goal.run()
...
As you can see, it does not fill parameter
ignore_weak_deps=(not conf.install_weak_deps))
as it does in dnf/base.py
It's important since it download more .src.rpm files than it should (in my case).
P.S. Actually, it is triggered in Fedora 34, but I believe the problem is still here. https://github.com/rpm-software-management/dnf-plugins-core/blob/master/plugins/download.py#L256
I believe that the issue is resolved by DNF5. DNF5 is a replacement of Microdnf and in future (Fedora 41) also of DNF. It is available in Fedora38+, therefore I am closing the issue as resolved by DNF5. Please feel free to reopen the issue if I overlooked something or if you don't agree with solution.
The command dnf download ignores install_weak_deps=0. Why: Download plugin contains code: def _get_packages_with_deps(self, pkg_specs, source=False): """Get packages matching pkg_specs and the deps.""" ... rc = goal.run() ... As you can see, it does not fill parameter ignore_weak_deps=(not conf.install_weak_deps)) as it does in dnf/base.py It's important since it download more .src.rpm files than it should (in my case). P.S. Actually, it is triggered in Fedora 34, but I believe the problem is still here. https://github.com/rpm-software-management/dnf-plugins-core/blob/master/plugins/download.py#L256