graph-depends: remove unnecessary redirect of stderr
It hides any error messages reported by make. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Acked-by: Samuel Martin <s.martin49@gmail.com> Tested-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
b82f66cf40
commit
cfb6bf5ee9
@ -82,7 +82,7 @@ allpkgs = []
|
|||||||
def get_targets():
|
def get_targets():
|
||||||
sys.stderr.write("Getting targets\n")
|
sys.stderr.write("Getting targets\n")
|
||||||
cmd = ["make", "-s", "--no-print-directory", "show-targets"]
|
cmd = ["make", "-s", "--no-print-directory", "show-targets"]
|
||||||
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
|
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, universal_newlines=True)
|
||||||
output = p.communicate()[0].strip()
|
output = p.communicate()[0].strip()
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
return None
|
return None
|
||||||
@ -98,7 +98,7 @@ def get_depends(pkgs):
|
|||||||
cmd = ["make", "-s", "--no-print-directory" ]
|
cmd = ["make", "-s", "--no-print-directory" ]
|
||||||
for pkg in pkgs:
|
for pkg in pkgs:
|
||||||
cmd.append("%s-show-depends" % pkg)
|
cmd.append("%s-show-depends" % pkg)
|
||||||
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
|
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, universal_newlines=True)
|
||||||
output = p.communicate()[0]
|
output = p.communicate()[0]
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
sys.stderr.write("Error getting dependencies %s\n" % pkgs)
|
sys.stderr.write("Error getting dependencies %s\n" % pkgs)
|
||||||
|
Loading…
Reference in New Issue
Block a user