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,7 +38,10 @@ class MongoDB(Dependency):
def install_dependencies(self):
install_directory = self.config.directory.bin_directory + os.sep + u"mongo"
import shutil
shutil.copytree(self.findUnzippedMongoBinPath(),install_directory)
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):
return self.downloader.download_directory + os.sep + \

View file

@ -49,7 +49,10 @@ 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)
shutil.copytree(self.findUnzippedNodePath(),install_directory)
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"):
warning_string = u"A previous version of npm has been found. \nYou may experience problems if you have a version of npm that's too old.Would you like to upgrade?(y/n) "