Cleaning up quantum in dashboard if it exists (since we symlink for the client).

This commit is contained in:
Joshua Harlow 2012-02-29 11:15:13 -08:00
parent 6b7f6b547d
commit ecaa860534

View File

@ -120,8 +120,12 @@ class HorizonInstaller(comp.PythonInstallComponent):
#TODO remove this junk, blah, puke that we have to do this
qc = self.instances[settings.QUANTUM_CLIENT]
src_pth = sh.joinpths(qc.appdir, 'quantum')
tgt_dir = sh.joinpths(self.dash_dir, 'quantum')
if sh.isdir(src_pth):
links[src_pth] = sh.joinpths(self.dash_dir, 'quantum')
links[src_pth] = tgt_dir
#whhhhy???
if sh.isdir(tgt_dir):
sh.deldir(tgt_dir)
return links
def _check_ug(self):