diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-08-20 13:51:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-08-20 13:51:15 +0100 |
| commit | ddbe8b0d11b319d5c7b08dde2a54931058073c7a (patch) | |
| tree | 9d005ddf7195f4773944feebdb5022b2644726fa | |
| parent | 0789fb786b418e912dadd6849e478dd43338909a (diff) | |
| parent | 7a21645569d1af8ad377e78454e8e3bc5df6d476 (diff) | |
Merge.
| -rwxr-xr-x | cdist | 22 |
1 files changed, 3 insertions, 19 deletions
@@ -337,27 +337,11 @@ class OSXTarget(Target): def __init__(self): super(OSXTarget, self).__init__('osx', 4) - self.host_mount_dir = tempfile.mkdtemp() - - # Mount the remote host on host_mount_dir - command('sshfs %s:%s %s' % (config.get('osx_build_host'), config.get('osx_dir_in_host'), self.host_mount_dir)) - for g in glob.glob('%s/*' % self.host_mount_dir): + for g in glob.glob('%s/*' % config.get('osx_dir_in_host')): rmtree(g) def command(self, c): - # Work out the cwd for the chrooted command - cwd = os.getcwd() - assert(cwd.startswith(self.host_mount_dir)) - cwd = cwd[len(self.host_mount_dir):] - - log('ssh [%s] -> %s' % (cwd, c)) - command('ssh %s -- "cd %s%s; %s %s"' % (config.get('osx_build_host'), config.get('osx_dir_in_host'), cwd, self.variables_string(True), c)) - - def cleanup(self): - os.chdir('/') - command('fusermount -u %s' % self.host_mount_dir) - rmdir(self.host_mount_dir) - + command('%s %s' % (self.variables_string(False), c)) class OSXSingleTarget(OSXTarget): @@ -383,7 +367,7 @@ class OSXSingleTarget(OSXTarget): self.set('MACOSX_DEPLOYMENT_TARGET', config.get('osx_sdk')) def work_dir_cdist(self): - return '%s/%d' % (self.host_mount_dir, self.bits) + return self.work_dir_cscript() def work_dir_cscript(self): return '%s/%d' % (config.get('osx_dir_in_host'), self.bits) |
