Fixed #555. Fixed #350.

This commit is contained in:
Nick Winter 2014-04-11 19:58:52 -07:00
parent 99ead5d193
commit 8ea2a80088
2 changed files with 8 additions and 2 deletions

View file

@ -38,6 +38,9 @@ class MongoDB(Dependency):
def install_dependencies(self):
install_directory = self.config.directory.bin_directory + os.sep + u"mongo"
import shutil
if os.path.exists(install_directory):
print(u"Skipping creation of " + install_directory + " because it exists.")
else:
shutil.copytree(self.findUnzippedMongoBinPath(),install_directory)
def findUnzippedMongoBinPath(self):

View file

@ -49,6 +49,9 @@ class Node(Dependency):
print("Copying node into /usr/local/bin/...")
shutil.copy(unzipped_node_path + os.sep + "bin" + os.sep + "node","/usr/local/bin/")
os.chmod("/usr/local/bin/node",S_IRWXG|S_IRWXO|S_IRWXU)
if os.path.exists(install_directory):
print(u"Skipping creation of " + install_directory + " because it exists.")
else:
shutil.copytree(self.findUnzippedNodePath(),install_directory)
wants_to_upgrade = True
if self.check_if_executable_installed(u"npm"):