UpstreamSource: suppress stderr from tar in _determine_prefix()
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 3 Dec 2014 15:37:51 +0000 (17:37 +0200)
committerJun Wang <junbill.wang@samsung.com>
Fri, 29 Jan 2016 11:44:54 +0000 (19:44 +0800)
Change-Id: I3a0e51de2114e2aa9f9a12c41a9ed4c242fa2127
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/pkg/__init__.py

index 941b0f6..8162286 100644 (file)
@@ -359,7 +359,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")