git://git.onelab.eu
/
tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Centos 5.5 includes PgSQL 8.4
[tests.git]
/
system
/
utils.py
diff --git
a/system/utils.py
b/system/utils.py
index
a7637e6
..
9098b14
100644
(file)
--- a/
system/utils.py
+++ b/
system/utils.py
@@
-25,7
+25,9
@@
def system(command,background=False,silent=False):
print 'dry_run:',command
return 0
- if silent : command += " 2> /dev/null"
+ if silent :
+ if command.find(';')>=0: command = "(%s) 2> /dev/null" % command
+ else: command += " 2> /dev/null"
if background: command += " &"
if silent:
print '.',