recommend: use dmidecode only on x86(64)
Resolves: rhbz#1688371 Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
parent
033e35b4c4
commit
9d83b77572
1 changed files with 5 additions and 4 deletions
|
|
@ -2,15 +2,16 @@ import os
|
|||
import re
|
||||
import errno
|
||||
import procfs
|
||||
import platform
|
||||
from configobj import ConfigObj, ConfigObjError
|
||||
|
||||
have_dmidecode = False
|
||||
try:
|
||||
if (os.getuid() == 0):
|
||||
if (os.getuid() == 0 and platform.machine() in ["i386", "i486", "i586", "i686", "x86_64"]):
|
||||
import dmidecode
|
||||
have_dmidecode = True
|
||||
else:
|
||||
have_dmidecode = False
|
||||
except:
|
||||
have_dmidecode = False
|
||||
pass
|
||||
try:
|
||||
import syspurpose.files
|
||||
have_syspurpose = True
|
||||
|
|
|
|||
Loading…
Reference in a new issue