mudler / luet

:package: :whale: 0-dependency Container-based Package Manager using SAT solver and QLearning
https://luet.io
GNU General Public License v3.0
266 stars 24 forks source link

Provides versions clarification #339

Open msdobrescu opened 1 year ago

msdobrescu commented 1 year ago

Regarding provides, what is the role of the version? I've thought '>=0' means to accept any version available and having only one at a time in C-R, I've expected it would check and find one version and use it, regardless what is installed, so the installed package version would be replaced by the C-R available. But it seems it is actually bound to a version at build time so it throws things like this at upgrade time:

  ERROR    Error: failed computing upgrade: Failed solving solution for upgrade: Could not compute upgrade - couldn't uninstall candidates : could not satisfy the constraints: 
          twisted-libs-22.10.0-r1 and 
          deluge-apps-2.1.1-r3 and 
          !(deluge-apps-2.1.1-r3) or twisted-libs-22.10.0+1 and 
          !(twisted-libs-22.10.0+1) or !(twisted-libs-22.10.0+1) or !(twisted-libs-22.10.0-r1)

So, what is the point of specifying >=0 anyway if it can't use any version after all?