arch linux file /etc/arch-release doesn't contain version number

This commit is contained in:
Yann Leboulanger 2008-01-30 21:29:55 +00:00
parent 17e7c02374
commit 58210daf44
1 changed files with 2 additions and 1 deletions

View File

@ -784,7 +784,8 @@ def get_os_info():
'sourcemage') or not\
os.path.basename(path_to_file).startswith('slackware'):
text = distro_name + ' ' + text
elif path_to_file.endswith('aurox-release'):
elif path_to_file.endswith('aurox-release') or \
path_to_file.endswith('arch-release'):
# file doesn't have version
text = distro_name
elif path_to_file.endswith('lfs-release'): # file just has version