Now I'm working on writing DNF plugin for snapper (http://snapper.io/) It will create snapshot before transaction (pre-snapshot) and after finished transaction (post-snapshot). In this case I can't use resolved() stage for pre-snapshot.
We can do this. I'd rather collect all request from plugin developers first, then rename some current hooks to make more sense (transaction -> transaction_end, ...) with new ones added. In the meantime you can wastefully save snapshots in `resolved` hook.
FTR, the use case is that the plugin wants to create the snapshot only if it's already clear that the transaction will be performed. I.e. after the user's confirmation.
*** Bug 1192741 has been marked as a duplicate of this bug. ***
Any new info/decision about this request? I've recently hit a case with the snapper plugin where I lost files after having to revert to a previous snapshot, because it was from the previous packaging operation some days ago. I had to extract files manually from the snapshots, which is never pleasant. Having the ability to take snapshots immediately before and after a transaction would be really helpful.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Please Igor, can you re-evaluate the request. Or can you try to implement it according to your needs? Thanks a lot.
New pre_transaction hook for plugins in PR https://github.com/rpm-software-management/dnf/pull/818 This hook is called just before the transaction execution.
The patch was released in dnf-2.5.1-1 into rawhide and Fc26.