[asterisk-scf-commits] asterisk-scf/integration/testsuite.git branch "review" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Thu May 26 18:06:38 CDT 2011


branch "review" has been updated
       via  12b7b328ee91d372ca30c1c191a5922e8d8cb914 (commit)
      from  2902213b85719ec393baafae8b2dfae514444fa1 (commit)

Summary of changes:
 remote.py |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)


- Log -----------------------------------------------------------------
commit 12b7b328ee91d372ca30c1c191a5922e8d8cb914
Author: Darren Sessions <dsessions at digium.com>
Date:   Thu May 26 18:06:36 2011 -0500

    ironing out the file paths and streamlining some of the functions.

diff --git a/remote.py b/remote.py
index 871c9ad..cb177bb 100755
--- a/remote.py
+++ b/remote.py
@@ -175,20 +175,15 @@ class RemoteManagement(object):
         return {'success':True}
 
     def archiveDir(self, dn):
-        dn = dn.replace('!!TMP!!', '%s/tmp' % cwd)
         dn = self._filePathCheck(dn)
         if not os.path.exists("%s" % dn):
             return {'success':False,'msg':'The %s path does not exist.' % dn}
-        tar = self._which('tar')
-        gzip = self._which('gzip')
-        cmds = '%s -cvf tmp.tar %s' % (tar, dn) 
         os.chdir('%s/tmp' % cwd)
-        results = self.run('remote', 'archiveDir', cmds.split(' '), True)
+        results = self.run('remote', 'archiveDir', [self._which('tar'), '-cvf', 'tmp.tar', '%s' % dn], True)
         if results['success'] == False:
             return results
-        cmds = '%s tmp.tar' % gzip
         os.chdir('%s/tmp' % cwd)
-        results = self.run('remote', 'archiveDir', cmds.split(' '), True)
+        results = self.run('remote', 'archiveDir', [self._which('gzip'), 'tmp.tar'], True)
         return results
 
     def writeFile(self, fn, fd):

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/testsuite.git



More information about the asterisk-scf-commits mailing list