From a318df268c7752410938cdaa01c60cc569dbdba8 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Wed, 3 Dec 2014 17:37:51 +0200 Subject: [PATCH] UpstreamSource: suppress stderr from tar in _determine_prefix() Change-Id: I3a0e51de2114e2aa9f9a12c41a9ed4c242fa2127 Signed-off-by: Markus Lehtonen --- gbp/pkg/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gbp/pkg/__init__.py b/gbp/pkg/__init__.py index 9c54c86d..4e99efe9 100644 --- a/gbp/pkg/__init__.py +++ b/gbp/pkg/__init__.py @@ -420,7 +420,7 @@ class UpstreamSource(object): files.append((typ, info.filename)) elif self._archive_fmt == 'tar': popen = subprocess.Popen(['tar', '-t', '-v', '-f', self.path], - stdout=subprocess.PIPE) + stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, _err = popen.communicate() if popen.returncode: raise GbpError("Listing tar archive content failed") -- 2.34.1