From b51ba152eabc5211f20e226f678529bbc7af3adc Mon Sep 17 00:00:00 2001
From: Dimitur Kirov <dkirov@gmail.com>
Date: Mon, 29 May 2006 14:19:18 +0000
Subject: [PATCH] nkour: fix slack version

---
 src/common/helpers.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/common/helpers.py b/src/common/helpers.py
index a5574cc96d..c7593d562f 100644
--- a/src/common/helpers.py
+++ b/src/common/helpers.py
@@ -692,8 +692,11 @@ def get_os_info():
 					text = fd.readline().strip() # get only first line
 					fd.close()
 					if path_to_file.endswith('version'):
-						# sourcemage_version has all the info we need
-						if not os.path.basename(path_to_file).startswith('sourcemage'):
+						# sourcemage_version and slackware-version files
+						# 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
 					elif path_to_file.endswith('aurox-release'):
 						# file doesn't have version
-- 
GitLab