On 26.07.2021 00:56, DennisG wrote:
It uses your installed version for the search, and looks in all available repo's for that version including OBS and 3rd-party (packman, KDE, etc.). So when I do:
# opi psmisc on my 15.3 machine, it returns 4 choices, only 15.3 (and OBS, because it doesn't see the main 15.3 repo's)
When I do:
# opi psmisc on my 15.2 machine, it returns the package from the main 15.2 repository and 15.2 OBS repo's as well.
I don't see a way to override the version. And the main 15.3 repo's are apparently not in whatever source that is being searched by either opi or software.opensuse.org.
opi looks for binary packages that are built in project openSUSE:Leap:15.3 or projects derived from it. The problem is most packages in 15.3 are not in this project - they are inherited from SLE or SLE backports. So project name does not match. There are very small number of packages that are built directly in openSUSE:Leap:15.3 project. E.g. NetworkManager-pptp. All other packages actually belong to different project. And OBS search apparently is not designed for it. I am not familiar with OBS structure or API enough to suggest how it can be fixed. If you are concerned, report issue on https://github.com/openSUSE/opi/issues As for version - code that selects target repository is pretty much self contained, so it should be straightforward to add options to set target distribution. Any takers? opi is Python, and you do not even need to know anything about OBS itself :) Of course if you change distribution you also should no more offer installation of these packages ... and opi stands for OBS Package *Install*. You want ops - OBS Package *Search* :) So changes are more intrusive.