|
From: <di...@us...> - 2011-06-11 16:14:20
|
Revision: 758
http://safekeep.svn.sourceforge.net/safekeep/?rev=758&view=rev
Author: dimi
Date: 2011-06-11 16:14:14 +0000 (Sat, 11 Jun 2011)
Log Message:
-----------
Fix a few bugs introduced by the previous patches
Modified Paths:
--------------
safekeep/trunk/safekeep
Modified: safekeep/trunk/safekeep
===================================================================
--- safekeep/trunk/safekeep 2011-06-11 16:07:23 UTC (rev 757)
+++ safekeep/trunk/safekeep 2011-06-11 16:14:14 UTC (rev 758)
@@ -916,18 +916,18 @@
ionice_cmd = 'ionice'
if ionice and ionice != 'none':
- ionice_out = try_to_run(ionice_cmd, '-h')
+ ionice_out = try_to_run([ionice_cmd, '-h'])
if ionice_out is not None:
- ionice_args = []
+ ionice_args = []
if ionice is 'idle':
ionice_args.extend(['-c3'])
else:
ionice_args.extend(['-c2', '-n%s' % (ionice)])
- if ionice_out.find('-t') > 0:
+ if ''.join(ionice_out).find('-t') > 0:
ionice_args.extend(['-t'])
- if try_to_run(ionice_cmd, ionice_args + ['/bin/true']) is not None:
+ if try_to_run([ionice_cmd] + ionice_args + ['/bin/true']) is not None:
args.append(ionice_cmd)
args.extend(ionice_args)
else:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|