#1 Use DNF instead of manual depsolving
Closed by otaylor. Opened by ignatenkobrain.

Please, never ever use hawkey directly. And stop reinventing dependency solving. That's what libsolv is for.


hawkey is used only for hawkey.split_nevra - do you have a suggestion for a replacement for that in public API?

My ideal situation is that there isn't a flatpak-specific tool to do the type of dependency-wrangling that create-modulemd does - we should have tools that work for all types of Fedora modules. create-modulemd is really pretty much a quick hack to get things far enough so that we can identify our needs. I've put some effort into creating a bit of polish around my hacky scripts so that other people can replicate what I'm doing, but that doesn't change the fact that they are hacky scripts.

That being said, I'd love to know how to do thing better? Do you have any examples that you can share of using libsolv directly for similar tasks?

we have depchase, but Modularity team is not able to say what they want me to create... So currently there is no tool/library to create module from some existing repo.

If you will be able to get that information from Modularity, I would be happy to hear it and create a tool/lib.

This functionality was moved from flatpak-module-tools to fedmod, which has a fork of depchase using libsolv.

Metadata Update from @otaylor:
- Issue status updated to: Closed (was: Open)

Metadata