mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 17:23:36 +02:00
jw.pkg.App.distro_id: Don't return opensuse
get-os.sh returned "suse" for SuSE-like distros, and that seems more appropriate since SLES is not OpenSUSE but should share and ID with other SuSE variants. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
d22074abf9
commit
03fca61248
2 changed files with 3 additions and 3 deletions
|
|
@ -285,7 +285,7 @@ class App(Base):
|
|||
val = self.os_release_field('ID', throw=True)
|
||||
match val:
|
||||
case 'opensuse-tumbleweed':
|
||||
self.__distro_id = 'opensuse'
|
||||
self.__distro_id = 'suse'
|
||||
case 'kali':
|
||||
self.__distro_id = 'kali'
|
||||
case _:
|
||||
|
|
@ -295,7 +295,7 @@ class App(Base):
|
|||
@property
|
||||
def distro_codename(self) -> str:
|
||||
match self.distro_id:
|
||||
case 'opensuse':
|
||||
case 'suse':
|
||||
self.__distro_codename = \
|
||||
self.os_release_field('ID', throw=True).split('-')[1]
|
||||
case 'kali':
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class Cmd(Base): # export
|
|||
backend_id = 'debian'
|
||||
case 'centos':
|
||||
backend_id = 'redhat'
|
||||
case 'opensuse':
|
||||
case 'opensuse' | 'suse':
|
||||
backend_id = 'suse'
|
||||
self.__backend_path = (
|
||||
os.path.splitext(__name__)[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue