aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageialinux-online.org>2015-11-28 11:38:04 +0100
committerPapoteur <papoteur@mageialinux-online.org>2015-11-28 11:38:04 +0100
commit300b17538e211372f7e7a90f36ba062f92b6ac68 (patch)
tree9f514841eb87f6abea9c5cdb17d1451f0a375cf5 /MgaRepo
parent5971aa7b423a2c735257ad58ab22e1619828055d (diff)
downloadmgarepo-300b17538e211372f7e7a90f36ba062f92b6ac68.tar
mgarepo-300b17538e211372f7e7a90f36ba062f92b6ac68.tar.gz
mgarepo-300b17538e211372f7e7a90f36ba062f92b6ac68.tar.bz2
mgarepo-300b17538e211372f7e7a90f36ba062f92b6ac68.tar.xz
mgarepo-300b17538e211372f7e7a90f36ba062f92b6ac68.zip
Suppress debug info and add verbose info.
Diffstat (limited to 'MgaRepo')
-rw-r--r--MgaRepo/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/MgaRepo/util.py b/MgaRepo/util.py
index b151c7f..84c8a63 100644
--- a/MgaRepo/util.py
+++ b/MgaRepo/util.py
@@ -17,7 +17,6 @@ import httplib2
def commands_getstatusoutput(cmd):
"""Return (status, output) of executing cmd in a shell."""
import os
- print('Commande : ',cmd)
pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')
text = pipe.read()
sts = pipe.close()
@@ -69,6 +68,7 @@ def execcmd(*cmd, **kwargs):
else:
raise Error("command failed: %s\n%s\n" % (cmdstr, output))
if verbose:
+ print(output)
sys.stdout.buffer.write(output)
return status, output