rpm-ostree/rust
Jonathan Lebon 5f17bc5c87 lockfile: Return LockfileConfig rather than Vec<StringMapping>
I don't like the use of `HY_GLOB` in the lockfile package matching. We
have all the information in the Rust object, so it's silly to condense
that to a single string in a hashmap.

Fix this by returning the `LockfileConfig` object itself and then adding
a function to fetch the list of locked packages. This allows the C++
side to see all the individual fields which makes filtering trivial.

The next step is moving all the code which needs the lockfile to Rust.
Then we can drop the shared `LockedPackage` type.

(I did start on converting `find_locked_packages`, though it requires
adding bindings for all the `HyQuery` stuff, which...  isn't great (and
also runs into the fact that `hy_query_run` needs to return a
GPtrArray). I think instead of a 1:1 mapping, we'll probably want the
libdnf-sys API wrappers to provide some sugar for the common paths.)
2021-03-11 00:01:46 +01:00
..
libdnf-sys Introduce CxxGObjectArray, use in lockfile code 2021-03-02 16:25:32 -08:00
rpmostree-client build(deps): bump serde from 1.0.123 to 1.0.124 2021-03-08 11:06:40 -05:00
src lockfile: Return LockfileConfig rather than Vec<StringMapping> 2021-03-11 00:01:46 +01:00
.gitignore Add testutils generate-synthetic-upgrade 2020-08-18 17:23:15 +02:00
LICENSE-APACHE Clarify license situation to include GPLv2, relicense Rust code 2019-09-05 20:49:18 +00:00
LICENSE-MIT Clarify license situation to include GPLv2, relicense Rust code 2019-09-05 20:49:18 +00:00