summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2018-10-19 22:17:04 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2018-10-22 12:16:57 +0000
commit5fa00200173151a25a45777e17c0926b7082e953 (patch)
treef4fcca8ac21eb749b99c265833f2e6c73937f55e
parentecef0475a0a9d51e1a8842fbf0e0b9a948565cbd (diff)
Prevent db-dump failure when sdk is not valid
Change-Id: I4cbc0b38333938836dac738f2240a05be1d6a09f Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
-rwxr-xr-xscripts/sdks/agl/db-dump4
1 files changed, 3 insertions, 1 deletions
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'