[OE-core] [PATCH] lib/oe/lsb.py: Stop parsing /etc/SuSE-release

Ed Bartosh ed.bartosh at linux.intel.com
Fri Mar 20 14:12:47 UTC 2015


On Fri, Mar 20, 2015 at 11:38:25AM +0000, Paul Eggleton wrote:
> Hi Ed,
> 
> On Friday 20 March 2015 13:22:50 Ed Bartosh wrote:
> > /etc/SuSE-release should not be parsed to obtain release info
> > 
> > Here is the quote from /etc/SuSE-release:
> > /etc/SuSE-release is deprecated and will be removed in the future,
> > use /etc/os-release instead
> > 
> > All recent OpenSUSE versions already have /etc/os-release and
> > oe.lsb/release_dict_file function already parses it.
> > 
> > Current implementation of release_dict_file returns different values
> > when parsing /etc/SuSE-release and /etc/os-release. This is one more
> > advantage of getting rid of parsing /etc/SuSE-release.
> 
> How long ago did OpenSuSE start including /etc/os-release? My concern is if 
> someone did happen to run on an older OpenSuSE release and then submit a bug 
> report with an attached log, we'd rather see the actual version rather than 
> "Unknown". If that's a possible scenario, we might want to just swap the 
> blocks around so that /etc/os-release is looked for first.
> 
I've checked opensuse versions starting from 12.3, which was released 2 years ago and became OOL in Jan 2015. If you think it's not enough I can check 12.2 and 12.1 or swap the blocks as you've suggested.

Regards,
Ed



More information about the Openembedded-core mailing list