rpm: suppress stderr when unpacking src.rpm
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 3 Dec 2014 14:40:46 +0000 (16:40 +0200)
committerJun Wang <junbill.wang@samsung.com>
Fri, 29 Jan 2016 11:43:27 +0000 (19:43 +0800)
Change-Id: I055e94f905048141268ceb9172b4e10fcb5cdc58
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/rpm/__init__.py

index 0e04b4d..4c5c22b 100644 (file)
@@ -100,7 +100,7 @@ class SrcRpmFile(object):
         """
         gbpc.RunAtCommand('rpm2cpio',
                           [self.srpmfile, '|', 'cpio', '-id'],
-                          shell=True)(dir=dest_dir)
+                          shell=True, capture_stderr=True)(dir=dest_dir)
 
 
 class SpecFile(object):