From 5fa00200173151a25a45777e17c0926b7082e953 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Fri, 19 Oct 2018 22:17:04 +0200 Subject: Prevent db-dump failure when sdk is not valid Change-Id: I4cbc0b38333938836dac738f2240a05be1d6a09f Signed-off-by: Sebastien Douheret --- scripts/sdks/agl/db-dump | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/sdks/agl') diff --git a/scripts/sdks/agl/db-dump b/scripts/sdks/agl/db-dump index e5ee8c8..d375177 100755 --- a/scripts/sdks/agl/db-dump +++ b/scripts/sdks/agl/db-dump @@ -26,6 +26,7 @@ import inspect import fnmatch import argparse import subprocess +from subprocess import DEVNULL import re PARSER = argparse.ArgumentParser( @@ -120,7 +121,8 @@ for one_sdk in INSTALLED_SDK: if ARCH == 'corei7-64': # Use /etc/rpm/platform to distinguish qemux86-64 from corei7-64 architecture grepQemu = subprocess.call(['grep', '-q', 'qemux86', os.path.join( - one_sdk['SYSROOTS'], 'corei7-64-agl-linux', 'etc', 'rpm', 'platform')]) + one_sdk['SYSROOTS'], 'corei7-64-agl-linux', 'etc', 'rpm', 'platform')], + stdout=DEVNULL, stderr=subprocess.STDOUT) if grepQemu == 0: ARCH = 'qemux86-64' -- cgit 1.2.3-korg