incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g..@apache.org
Subject svn commit: r1393384 - /incubator/bloodhound/trunk/installer/bloodhound_setup.py
Date Wed, 03 Oct 2012 10:05:36 GMT
Author: gjm
Date: Wed Oct  3 10:05:36 2012
New Revision: 1393384

URL: http://svn.apache.org/viewvc?rev=1393384&view=rev
Log:
stop installer failing when repository options are not fully specified - fixes #154 (from
jure)

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=1393384&r1=1393383&r2=1393384&view=diff
==============================================================================
--- incubator/bloodhound/trunk/installer/bloodhound_setup.py (original)
+++ incubator/bloodhound/trunk/installer/bloodhound_setup.py Wed Oct  3 10:05:36 2012
@@ -160,6 +160,10 @@ class BloodhoundSetup(object):
             options['repo_type'] = ''
         if 'repo_path' not in options or options['repo_path'] is None:
             options['repo_path'] = ''
+        if (len(options['repo_type']) > 0) ^ (len(options['repo_path']) > 0):
+            print "Error: Specifying a repository requires both the "\
+                  "repository-type and the repository-path options."
+            return False
 
         digestfile = os.path.abspath(os.path.join(new_env,
                                                   options['digestfile']))



Mime
View raw message