Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions rust/package/agama.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Mar 10 09:59:45 UTC 2026 - Josef Reidinger <jreidinger@suse.com>

- Always add hardware/filesystem/locale proposed packages when
running solver (bsc#1258193)

-------------------------------------------------------------------
Mon Mar 9 11:37:06 UTC 2026 - Ladislav Slezák <lslezak@suse.com>

Expand Down
9 changes: 5 additions & 4 deletions rust/zypp-agama/zypp-agama-sys/c-layer/include/lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ void free_patterns(const struct Patterns *patterns) noexcept;
/// Representation of zypp::Product
struct Product {
// so far we do not need more details about the products
const char *name; ///< owned
const char *repo_alias; ///< owned
const char *service_alias; ///< owned
const char *name; ///< owned
const char *repo_alias; ///< owned
const char *service_alias; ///< owned
};

struct Products {
Expand Down Expand Up @@ -231,7 +231,8 @@ bool is_package_selected(struct Zypp *zypp, const char *tag,
bool run_solver(struct Zypp *zypp, bool only_required,
struct Status *status) noexcept;

/// Create a solver testcase, dumps all all solver data (repositories, loaded packages...) to disk
/// Create a solver testcase, dumps all all solver data (repositories, loaded
/// packages...) to disk
/// @param zypp see \ref init_target
/// @param dir directory path where the solver testcase is saved
/// @return true if the solver testcase was successfully created
Expand Down
14 changes: 12 additions & 2 deletions rust/zypp-agama/zypp-agama-sys/c-layer/lib.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,18 @@ bool run_solver(struct Zypp *zypp, bool only_required,
struct Status *status) noexcept {
try {
STATUS_OK(status);
zypp->zypp_pointer->resolver()->setOnlyRequires(only_required);
return zypp->zypp_pointer->resolver()->resolvePool();
auto resolver = zypp->zypp_pointer->resolver();
resolver->setOnlyRequires(only_required);
// needed to get hardware and locale specific provisioning
// @ma: On a fresh install I'd recommend to set INR if you
// want HW/Filesystem/Language supporting packages to be selected.
// INR is the mode e.g. 'zypper inr' operates in, AKA InstallNewRecommends.
// Recommendations of already installed packages are usually not evaluated
// again. With INR they are.
// The Resolver flag is setIgnoreAlreadyRecommended=0.
// (addalreadyrecommended=1 is libsolv world)
resolver->setIgnoreAlreadyRecommended(false);
return resolver->resolvePool();
} catch (zypp::Exception &excpt) {
STATUS_EXCEPT(status, excpt);
return false; // do not matter much as status indicate failure
Expand Down
Loading