[rtems-docs commit] Fix the linux specific include
Chris Johns
chrisj at rtems.org
Fri May 21 04:47:36 UTC 2021
Module: rtems-docs
Branch: master
Commit: 1361d2cd30fdaf95b34ee914d0f7935febb2a950
Changeset: http://git.rtems.org/rtems-docs/commit/?id=1361d2cd30fdaf95b34ee914d0f7935febb2a950
Author: Chris Johns <chrisj at rtems.org>
Date: Mon May 10 11:57:55 2021 +1000
Fix the linux specific include
---
common/latex.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/common/latex.py b/common/latex.py
index a1b3917..17d3015 100644
--- a/common/latex.py
+++ b/common/latex.py
@@ -4,10 +4,6 @@
import os
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}']
@@ -85,6 +81,10 @@ def tex_test(test):
def host_name():
uname = os.uname()
if uname[0] == 'Linux':
+ try:
+ from distro import linux_distribution
+ except:
+ from platform import linux_distribution
distro = linux_distribution()
name = '%s/%s' % (uname[0], distro[0])
version = distro[1]
More information about the vc
mailing list