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
It would be great if you could create a pull request on this (since you already have investigated the issue). What do you think?
Sorry, I can't fix because I don't understand internal DNF API. So, I don't know where to get the settings in order to pass them to run().
This bug appears to have been reported against 'rawhide' during the Fedora Linux 37 development cycle. Changing version to 37.
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle. Changing version to 39.