jw.pkg.cmds.distro.Cmd._backend_path: Fix suse mapping

App.distro_id used to return "opensuse-tumbleweed", analogous to
what's in ID@/etc/os-release, but now returns "opensuse", and the
"tumbleweed" goes into "codename". That matches more what Debian-like
distributions do, but it confuses _backend_path. Adapt it to map the
new distro_id correctly.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-03-03 04:27:27 +01:00
commit d22074abf9

View file

@ -33,7 +33,7 @@ class Cmd(Base): # export
backend_id = 'debian'
case 'centos':
backend_id = 'redhat'
case 'opensuse_tumbleweed':
case 'opensuse':
backend_id = 'suse'
self.__backend_path = (
os.path.splitext(__name__)[0]