Bug 1007140 - python (2.7) cannot identify the opensuse tumbelweed distribution
Summary: python (2.7) cannot identify the opensuse tumbelweed distribution
Status: RESOLVED DUPLICATE of bug 997614
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Development (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Jan Matejek
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-27 01:20 UTC by Forgotten User l1MoexVUtJ
Modified: 2017-03-29 11:56 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Forgotten User l1MoexVUtJ 2016-10-27 01:20:08 UTC
In my tumbleweed install there is a file `/etc/SUSE-brand` but no `/etc/SuSE-release`. The latter is used by python 2.7 at least to identify the distribution python is running on. For example:
$ python
Python 2.7.12 (default, Jun 28 2016, 06:57:42) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.linux_distribution()
('', '', '')

If I link SUSE-brand to SuSE-release:
$  python
Python 2.7.12 (default, Jun 28 2016, 06:57:42) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.linux_distribution()
('SuSE', 'openSUSE', '')

This is important for software like cobbler (for which there is a rpm in tumbleweed, did anyone even test that it could be started?), which relies on this particular call as well as the SuSE-release file presence to identify the right default for the service (such as what is the apache2 user).
Comment 1 Jan Matejek 2017-03-29 11:56:41 UTC
known problem

*** This bug has been marked as a duplicate of bug 997614 ***