openSUSE / opi

OBS Package Installer (CLI)
GNU General Public License v3.0
233 stars 20 forks source link

opi is broken again under Leap 15.5 #163

Closed ecsgh closed 7 months ago

ecsgh commented 7 months ago

The problem that was fixed in 3.4.0 is now back.

Error:

You have selected package name: MozillaFirefox
Traceback (most recent call last):
  File "/usr/bin/opi", line 145, in <module>
    repo_query(args.query)
  File "/usr/bin/opi", line 85, in repo_query
    binaries = opi.search_local_repos(selected_name) + binaries
  File "/usr/lib/python3.6/site-packages/opi/__init__.py", line 185, in search_local_repos
    installable['repository'] = repos_by_name[repo_name]
KeyError: 'update-sle (15.5)'

zypper lr -u: repositories_mozilla | repositories:mozilla 15.5 | Ja | (r ) Ja | Ja | https://download.opensuse.org/repositories/mozilla/openSUSE_Leap_15.5/

Content of repofile:

[repositories_mozilla]
name=repositories:mozilla $releasever
enabled=1
autorefresh=1
baseurl=https://download.opensuse.org/repositories/mozilla/openSUSE_Leap_$releasever/
path=/
type=rpm-md
keeppackages=0
asdil12 commented 7 months ago

Could you send me the content of your update-sle (15.5) repo file?

Maybe simply send me the output of this script:

(cd /etc/zypp/repos.d; \ls | while read line ; do echo -e "\n----\n$line:"; cat "$line" ; done)
ecsgh commented 7 months ago

Content of update-sle (15.5)


[openSUSE:update-sle]
name=update-sle (${releasever})
enabled=1
autorefresh=1
baseurl=http://cdn.opensuse.org/update/leap/${releasever}/sle
service=openSUSE
asdil12 commented 7 months ago

okay - the issue is that here we have ${releasever} but opi can only handle the $releasever syntax. I didn't even know that this syntax was possible in zypp repos.

ecsgh commented 7 months ago

However, the entry came from an update. So it was not created by me.

asdil12 commented 7 months ago

https://build.opensuse.org/request/show/1131585

ecsgh commented 7 months ago

Thank you. Everything works again. :-)