Added support of new image_url field
[src/xds/xds-server.git] / scripts / sdks / agl / db-dump
index e5ee8c8..fecdcd3 100755 (executable)
@@ -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'
 
@@ -182,6 +184,7 @@ for one_sdk in INSTALLED_SDK:
             'arch': ARCH,
             'path': DIR,
             'url': '',
+            'image_url': '',
             'status': 'Installed',
             'date': SDK_DATE,
             'size': '',