summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-12-03 17:37:51 +0200
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-12-03 17:37:51 +0200
commita318df268c7752410938cdaa01c60cc569dbdba8 (patch)
tree0b72177fc7ed0ec493287c121034bfa453eee630
parentee44309901378937114eb6e5e7ae4dbceee0f1c5 (diff)
downloadgit-buildpackage-a318df268c7752410938cdaa01c60cc569dbdba8.tar.gz
git-buildpackage-a318df268c7752410938cdaa01c60cc569dbdba8.tar.bz2
git-buildpackage-a318df268c7752410938cdaa01c60cc569dbdba8.zip
UpstreamSource: suppress stderr from tar in _determine_prefix()
Change-Id: I3a0e51de2114e2aa9f9a12c41a9ed4c242fa2127 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-rw-r--r--gbp/pkg/__init__.py2
1 files changed, 1 insertions, 1 deletions
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")