From: Marcin Krol Date: Thu, 1 Aug 2013 11:02:17 +0000 (+0200) Subject: - get rid of git command output when checking in which git package exists X-Git-Url: https://git.tld-linux.org/?p=tld-builder.git;a=commitdiff_plain;h=51af4ccae6d5a9fa138fe5824cb038c0ea7ea78e;hp=023f7f27e38074e64d78d0d4e97df0df36045bec - get rid of git command output when checking in which git package exists --- diff --git a/PLD_Builder/request.py b/PLD_Builder/request.py index d4a35dd..9396394 100644 --- a/PLD_Builder/request.py +++ b/PLD_Builder/request.py @@ -221,7 +221,7 @@ class Batch: if self.is_command(): desc = "SH:
%s
flags: [%s]" % (self.command, ' '.join(self.command_flags)) else: - cmd = "/usr/bin/git ls-remote --heads git://git.tld-linux.org/packages/%s" % (self.spec[:-5]) + cmd = "/usr/bin/git ls-remote --heads git://git.tld-linux.org/packages/%s 1>/dev/null 2>&1" % (self.spec[:-5]) r = call(cmd, shell=True) if r == 0: dist = "tld"