You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by gj...@apache.org on 2012/10/03 12:05:36 UTC

svn commit: r1393384 - /incubator/bloodhound/trunk/installer/bloodhound_setup.py

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']))