Skip to content
Snippets Groups Projects
Commit b51ba152 authored by dkirov's avatar dkirov
Browse files

nkour: fix slack version

parent d4b6cb7a
No related branches found
No related tags found
No related merge requests found
...@@ -692,8 +692,11 @@ def get_os_info(): ...@@ -692,8 +692,11 @@ def get_os_info():
text = fd.readline().strip() # get only first line text = fd.readline().strip() # get only first line
fd.close() fd.close()
if path_to_file.endswith('version'): if path_to_file.endswith('version'):
# sourcemage_version has all the info we need # sourcemage_version and slackware-version files
if not os.path.basename(path_to_file).startswith('sourcemage'): # have all the info we need (name and version of distro)
if not os.path.basename(path_to_file).startswith(
'sourcemage') or not\
os.path.basename(path_to_file).startswith('slackware'):
text = distro_name + ' ' + text text = distro_name + ' ' + text
elif path_to_file.endswith('aurox-release'): elif path_to_file.endswith('aurox-release'):
# file doesn't have version # file doesn't have version
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment