From 3e02e8bf857aacd058e2a9844da9bab740763717 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 6 May 2020 16:56:35 -0400 Subject: [PATCH] Fix LEAP media detection LEAP was incorrectly detected as SLE. --- librarian/osimport | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/librarian/osimport b/librarian/osimport index ecf472c7..1674c652 100644 --- a/librarian/osimport +++ b/librarian/osimport @@ -141,7 +141,10 @@ def check_sles(isoinfo): ver = hline[-1].split('-')[0] major = ver.split('.', 2)[0] if hline[-1].startswith('15'): - distro = 'sle' + if hline[1] == 'openSUSE-Leap': + distro = 'opensuse_leap' + else: + distro = 'sle' if hline[0] == '/': disk = '1' elif hline[0].startswith('/Module'):