<div dir="ltr"><div>There are my PR with initial support with DNF: <a href="https://github.com/ansible/ansible-modules-extras/pull/527">https://github.com/ansible/ansible-modules-extras/pull/527</a><br><br></div>Contributions are welcome ;)<br></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jul 8, 2015 at 11:36 AM Honza Å ilhan <<a href="mailto:jsilhan@redhat.com">jsilhan@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> From: "Pavel Odvody" <<a href="mailto:podvody@redhat.com" target="_blank">podvody@redhat.com</a>><br>
> Hey,<br>
><br>
> at [1] is a re-implementation of the DNF module for Ansible using<br>
> exclusively DNF's APIs.<br>
> I have one question though, in the original code there was this [2],<br>
> which seems to try to search outstanding transactions for those<br>
> involving the specified packages; does that even make sense to try to do<br>
> this? First it feels like bypassing the DNF API in the first place,<br>
> second since there's no way to resolve the issue through Ansible/DNF<br>
> alone the error message will be particularly unhelpful.<br>
><br>
> I've tested the code with basic commands and playbooks so I'd appreciate<br>
> if anyone could help me with testing this :)<br>
><br>
> [1]:<br>
> <a href="https://github.com/shaded-enmity/ansible-modules-extras/blob/SE/dnf/packaging/os/dnf.py" rel="noreferrer" target="_blank">https://github.com/shaded-enmity/ansible-modules-extras/blob/SE/dnf/packaging/os/dnf.py</a><br>
> [2]:<br>
> <a href="https://github.com/ansible/ansible-modules-extras/blob/devel/packaging/os/dnf.py#L349" rel="noreferrer" target="_blank">https://github.com/ansible/ansible-modules-extras/blob/devel/packaging/os/dnf.py#L349</a><br>
><br>
<br>
Hi,<br>
<br>
DNF doesn't have any `find_unfinished_transactions` method. Looking at DNF code,<br>
we actually store `transaction-all*` and `transaction-done*` transaction logs but<br>
currently you cannot get the information from them the legal way (through API).<br>
You'd better leave this part of code in ansible module if it's not needed.<br>
Once it becomes important feel free to file RFE for DNF component.<br>
<br>
Honza<br>
_______________________________________________<br>
Rpm-ecosystem mailing list<br>
<a href="mailto:Rpm-ecosystem@lists.rpm.org" target="_blank">Rpm-ecosystem@lists.rpm.org</a><br>
<a href="http://lists.rpm.org/mailman/listinfo/rpm-ecosystem" rel="noreferrer" target="_blank">http://lists.rpm.org/mailman/listinfo/rpm-ecosystem</a><br>
</blockquote></div><div dir="ltr">-- <br></div><p dir="ltr">-Igor Gnatenko</p>