agama/rust/zypp-agama/zypp-agama-sys
Ladislav Slezák 3811875437
Select addon product to install (bsc#1258187), refresh repos after registration (bsc#1259217) (#3240)
## Problem

- https://bugzilla.suse.com/show_bug.cgi?id=1258187 - the `sle-ha`
product is not installed after registering the SLES-HA extension
- https://bugzilla.suse.com/show_bug.cgi?id=1259217 - no packages are
available after registration

## Solution

- Select the product from the just registered extension to install,
select products from all registered extensions when changing the
configuration via API
- Refresh the repositories after registering a product


## Testing

- Tested manually
- The `sle-ha` product is found (as the repository is refreshed) and is
selected to install:

Log excerpt:
```
Selecting product sle-ha from repository SUSE_Linux_Enterprise_High_Availability_Extension_16.1_x86_64:SLE-Product-HA-16.1
[rust-bindings] Resetting status of all resolvables
Selecting products from service SUSE_Linux_Enterprise_High_Availability_Extension_16.1_x86_64
Selecting product sle-ha from repository SUSE_Linux_Enterprise_High_Availability_Extension_16.1_x86_64:SLE-Product-HA-16.1
Install only required packages: false
[zypp::solver] -------------- Calling SAT Solver -------------------
[zypp::solver] SATResolver::resolvePool()
[zypp::solver] SATResolver::solverInit()
[zypp::solver] Locked 0 installed items and 0 NOT installed items.
[zypp::solver] Install U_Th_(7787)sle-ha-release-16.1-160099.11.1.x86_64(SUSE_Linux_Enterprise_High_Availability_Extension_16.1_x86_64:SLE-Product-HA-16.1)
[zypp::solver] Install U_Th_(7790)product:sle-ha-16.1-0.x86_64(SUSE_Linux_Enterprise_High_Availability_Extension_16.1_x86_64:SLE-Product-HA-16.1)
[zypp::solver] Install U_Th_(7835)NetworkManager-1.54.3-160099.1.1.x86_64(SUSE_Linux_Enterprise_Server_16.1_x86_64:SLE-Product-SLES-16.1)
```
2026-03-05 09:19:13 +01:00
..
c-layer Select addon product to install (bsc#1258187), refresh repos after registration (bsc#1259217) (#3240) 2026-03-05 09:19:13 +01:00
src Select addon product to install (bsc#1258187), refresh repos after registration (bsc#1259217) (#3240) 2026-03-05 09:19:13 +01:00
build.rs Redirect libzypp logs to systemd journal 2025-10-09 16:28:31 +02:00
Cargo.toml Clean-up unused dependencies 2026-03-03 11:40:36 +00:00
README.md integrate agama zypp into agama for easier coordination 2025-09-19 10:18:49 +02:00

Sys Crate for Agama Zypp

Low level FFI bindings to agama-zypp c layer.

How to regenerate bindings ( using bindgen-cli ):

bindgen --merge-extern-blocks headers.h -o src/bindings.rs -- -I../../c-layer/include