incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g..@apache.org
Subject svn commit: r1359000 - /incubator/bloodhound/trunk/installer/bloodhound_setup.py
Date Mon, 09 Jul 2012 09:38:35 GMT
Author: gjm
Date: Mon Jul  9 09:38:35 2012
New Revision: 1359000

URL: http://svn.apache.org/viewvc?rev=1359000&view=rev
Log:
installer: fixing a few bugs found by writing simple unit tests - #126

Modified:
    incubator/bloodhound/trunk/installer/bloodhound_setup.py

Modified: incubator/bloodhound/trunk/installer/bloodhound_setup.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/installer/bloodhound_setup.py?rev=1359000&r1=1358999&r2=1359000&view=diff
==============================================================================
--- incubator/bloodhound/trunk/installer/bloodhound_setup.py (original)
+++ incubator/bloodhound/trunk/installer/bloodhound_setup.py Mon Jul  9 09:38:35 2012
@@ -109,7 +109,7 @@ class BloodhoundSetup(object):
         if 'project' not in options:
             options['project'] = 'main'
         if 'envsdir' not in options:
-            options['envsdir'] = os.path.join(bloodhound,
+            options['envsdir'] = os.path.join('bloodhound',
                                               'environments')
 
     def _generate_db_str(self, options):
@@ -230,7 +230,7 @@ And point your browser at http://localho
                     config.set(section, key, value)
         if file_changed:
             if os.path.exists(filepath):
-                backupfile()
+                backupfile(filepath)
             config.save()
 
 def backupfile(filepath):
@@ -250,6 +250,7 @@ def backupfile(filepath):
         print "Backup created at %s." % backuppath
     else:
         print "No backup created (too many other backups found)"
+    return backuppath
 
 def handle_options():
     """Parses the command line, with basic prompting for choices where options



Mime
View raw message