On Tue, Mar 30, 2021 at 8:01 AM Gedare Bloom <ged...@rtems.org> wrote: > > Go ahead; platform.dist is deprecated/removed, and this is the right > replacement to make with backward compat to 2 via > platform.linux_distribution(). > Yes, I have also tested with 2 to ensure it's building. Thanks for the review. Pushed it.
> On Mon, Mar 29, 2021 at 7:43 PM Vijay Kumar Banerjee <vi...@rtems.org> wrote: > > > > Hi, > > Sorry for too many pings at once :) > > > > Thanks. > > > > On Tue, Mar 23, 2021 at 2:05 PM Vijay Kumar Banerjee <vi...@rtems.org> > > wrote: > > > > > > --- > > > common/latex.py | 7 +++++-- > > > 1 file changed, 5 insertions(+), 2 deletions(-) > > > > > > diff --git a/common/latex.py b/common/latex.py > > > index a042510..a1b3917 100644 > > > --- a/common/latex.py > > > +++ b/common/latex.py > > > @@ -3,8 +3,11 @@ > > > # > > > > > > import os > > > -import platform > > > import re > > > +try: > > > + from distro import linux_distribution > > > +except: > > > + from platform import linux_distribution > > > > > > package_test_preamble = ['\\newif\\ifsphinxKeepOldNames > > > \\sphinxKeepOldNamestrue', > > > '\documentclass[a4paper,11pt,english]{report}'] > > > @@ -82,7 +85,7 @@ def tex_test(test): > > > def host_name(): > > > uname = os.uname() > > > if uname[0] == 'Linux': > > > - distro = platform.dist() > > > + distro = linux_distribution() > > > name = '%s/%s' % (uname[0], distro[0]) > > > version = distro[1] > > > else: > > > -- > > > 2.26.2 > > > > > _______________________________________________ > > devel mailing list > > devel@rtems.org > > http://lists.rtems.org/mailman/listinfo/devel _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel