diff --git a/rust/agama-software/src/model.rs b/rust/agama-software/src/model.rs index 726c0835dc..3127fff4f4 100644 --- a/rust/agama-software/src/model.rs +++ b/rust/agama-software/src/model.rs @@ -149,10 +149,21 @@ impl ModelAdapter for Model { .iter() .map(|r| r.url.as_str()) .collect(); + let mut missing_predefined_repos = self.predefined_repositories.clone(); + for repo in system_info.repositories.iter_mut() { repo.predefined = predefined_urls.contains(&repo.url.as_str()); + if repo.predefined { + missing_predefined_repos.retain(|r| r.url != repo.url); + } } + // Add all predefined repositories that are missing in libzypp. + // As a result, they will be added to libzypp when writing the new + // software state. + system_info.repositories.extend(missing_predefined_repos); + tracing::info!("System info: {:?}", system_info); + Ok(system_info) } diff --git a/rust/agama-software/src/service.rs b/rust/agama-software/src/service.rs index 50d529d818..293bf3db11 100644 --- a/rust/agama-software/src/service.rs +++ b/rust/agama-software/src/service.rs @@ -459,6 +459,8 @@ fn find_mandatory_repositories>(root: P) -> Vec { repos.push(dud) } + tracing::info!("Using mandatory repositories: {:?}", repos); + repos } diff --git a/rust/package/agama.changes b/rust/package/agama.changes index 673a58e570..59f7c9d5ba 100644 --- a/rust/package/agama.changes +++ b/rust/package/agama.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Feb 4 11:37:18 UTC 2026 - Josef Reidinger + +- Fix usage of local repositories on full medium + (bsc#1257475) + ------------------------------------------------------------------- Tue Feb 3 07:23:18 UTC 2026 - Knut Anderssen