]> git.decadent.org.uk Git - dak.git/commitdiff
daklib/archive.py: silence output when unpacking source
authorAnsgar Burchardt <ansgar@debian.org>
Fri, 17 Aug 2012 14:26:29 +0000 (16:26 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Fri, 17 Aug 2012 14:26:29 +0000 (16:26 +0200)
daklib/archive.py

index bc67c2d9a7492278417c69e0d22bb4aee0d687f1..77f400b41a432eed66aa6439b9faea1081a90714 100644 (file)
@@ -672,7 +672,8 @@ class ArchiveUpload(object):
 
         sourcedir = os.path.join(self.directory, 'source')
         if not os.path.exists(sourcedir):
-            subprocess.check_call(["dpkg-source", "--no-copy", "-x", dsc_path, sourcedir], shell=False)
+            devnull = open('/dev/null', 'w')
+            subprocess.check_call(["dpkg-source", "--no-copy", "--no-check", "-x", dsc_path, sourcedir], shell=False, stdout=devnull)
         if not os.path.isdir(sourcedir):
             raise Exception("{0} is not a directory after extracting source package".format(sourcedir))
         return sourcedir