Skip to content

Commit

Permalink
download plugin: respect install_weak_deps option value
Browse files Browse the repository at this point in the history
Do not download weak deps when install_weak_deps is set to False.

= changelog =
msg: download: skip downloading weak deps when install_weak_deps=False
type: bug
  • Loading branch information
dex6 authored and j-mracek committed Mar 27, 2023
1 parent ca02ec9 commit 95ff945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def _get_packages_with_deps(self, pkg_specs, source=False):
for pkg in pkgs:
goal = hawkey.Goal(self.base.sack)
goal.install(pkg)
rc = goal.run()
rc = goal.run(ignore_weak_deps=(not self.base.conf.install_weak_deps))
if rc:
pkg_set.update(goal.list_installs())
pkg_set.update(goal.list_upgrades())
Expand Down

0 comments on commit 95ff945

Please sign in to comment.