summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-08-20 13:51:15 +0100
committerCarl Hetherington <cth@carlh.net>2013-08-20 13:51:15 +0100
commitddbe8b0d11b319d5c7b08dde2a54931058073c7a (patch)
tree9d005ddf7195f4773944feebdb5022b2644726fa
parent0789fb786b418e912dadd6849e478dd43338909a (diff)
parent7a21645569d1af8ad377e78454e8e3bc5df6d476 (diff)
Merge.
-rwxr-xr-xcdist22
1 files changed, 3 insertions, 19 deletions
diff --git a/cdist b/cdist
index bab2a0b..14c772c 100755
--- a/cdist
+++ b/cdist
@@ -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)