Skip to content
Permalink
Browse files

Fix the pkg type detection for sles15

sles15 no longer ship a /etc/SuSE-release. Detect the presence of
/etc/SUSE-brand too.
  • Loading branch information...
cvaroqui committed Jul 14, 2019
1 parent 5ce3c63 commit 83271f482348e7ed901e1b0e7070da2edbef2ebb
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/rcUpdatePkgLinux.py
@@ -19,7 +19,8 @@ def update_rpm(fpath):
if os.path.exists('/etc/debian_version'):
update = update_deb
repo_subdir = "deb"
elif os.path.exists('/etc/SuSE-release') or \
elif os.path.exists('/etc/SuSE-release') or \ #sles14-
os.path.exists('/etc/SUSE-brand') or \ # sles12+
os.path.exists('/etc/redhat-release'):
repo_subdir = "rpms"
update = update_rpm

0 comments on commit 83271f4

Please sign in to comment.
You can’t perform that action at this time.