While using dnf hooks in dnf-langpacks I found that there is no way to re-resolve a already resolved transaction in resolved() hook. What I am looking is that when a package set is prepared in transaction, I am going to read it and modify it. This modification is nothing but if a conditional package is selected for installation then for all enabled languages it’s translation packages will get installed. I wrote a code for that in resolved() hook and I can alter the transaction package set but as there is no re-resolve, it fails to complete the transaction with dependency issues.
I discussed this issue with dnf developers and they are really helpful in understanding my problem and aggreed that we need new hook for this problem. The bugzilla RFE is already open. Let’s wait for this new hook now.
If you want to know about dnf hooks then visit this http://dnf.readthedocs.org/en/latest/api_plugins.html page. For yum the hooks information is available at http://yum.baseurl.org/wiki/WritingYumPlugins page.