Skip to content

Commit

Permalink
ruby: Implement Enumerable for libdnf5::rpm::ReldepList.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackorp committed Oct 17, 2024
1 parent 2092455 commit 0aacded
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bindings/libdnf5/rpm.i
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
// Mixin modules for Ruby. This has to be declared before inclusion of the
// related header file.
%mixin libdnf5::rpm::PackageSet "Enumerable";
%mixin libdnf5::rpm::ReldepList "Enumerable";
#endif

%include <exception.i>
Expand Down Expand Up @@ -106,6 +107,11 @@ add_iterator(PackageSet)
add_iterator(ReldepList)

add_ruby_each(libdnf5::rpm::PackageSet)
// Reldep needs special treatment so that the add_ruby_each can use it.
#if defined(SWIGRUBY)
fix_swigtype_trait(libdnf5::rpm::Reldep)
#endif
add_ruby_each(libdnf5::rpm::ReldepList)

%feature("director") TransactionCallbacks;
%include "libdnf5/rpm/transaction_callbacks.hpp"
Expand Down

0 comments on commit 0aacded

Please sign in to comment.