Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Depends-On: 870
  • Loading branch information
abadger committed Sep 19, 2024
1 parent c2b80ac commit 1f9ed4f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ def load_tasks(config, logger):
# Loads configuration files to_install, to_keep, and to_remove from the given base directory
rpms = next(api.consume(DistributionSignedRPM))
rpm_names = [rpm.name for rpm in rpms.items]
print("== in load_tasks ==")
print(config)
print("== exit load_tasks ==")
to_install = config['transaction']['to_install']
# we do not want to put into rpm transaction what is already installed (it will go to "to_upgrade" bucket)
to_install_filtered = [pkg for pkg in to_install if pkg not in rpm_names]
Expand All @@ -32,7 +35,7 @@ def load_tasks(config, logger):
'The following packages from "to_install" file will be ignored as they are already installed:'
'\n- ' + '\n- '.join(filtered))

return RpmTransactionTasks(
return RpmransactionTasks(
to_install=to_install_filtered,
to_keep=config['transaction']['to_keep'],
to_remove=config['transaction']['to_remove'])

0 comments on commit 1f9ed4f

Please sign in to comment.