openSUSE / libsolv

Library for solving packages and reading repositories
http://en.opensuse.org/openSUSE:Libzypp_satsolver
Other
509 stars 151 forks source link

Non consistent behavior of installonly packages #550

Closed j-mracek closed 4 months ago

j-mracek commented 5 months ago

The issue has following trigger: All installed version must be available The update triggers removal of dependent package (kernel) that has also update but the package is not requested to be updated. The behavior is modified by order of installed package (kernel). If removed dependent package (kernel-1.0.2) is first on the list it trigger install of kernel-1.0.5. But in opposite situation, kernel-1.0.2 is only removed.

I am not sure whether libsolvs reads RPM DB in order of package ID in RPMDB.

Anyway it would be great if solver provides consistent results on multiple systems regardless of package order.

$ testsolv -W kernel-1.0.5-2.x86_64@updates test_multiversion2.txt 
conflicted kernel-1.0.5-2.x86_64@updates:
  it is unrelated
$ testsolv -W kernel-1.0.5-2.x86_64@updates test_multiversion.txt 
installed kernel-1.0.5-2.x86_64@updates:
  update installed

Libsolv testcases:

test_multiversion.txt test_multiversion2.txt

mlschroe commented 4 months ago

Fixed now.

j-mracek commented 4 months ago

Thank you very much