summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xglusterfs-hadoop/0.20.2/tools/build-deploy-jar.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/glusterfs-hadoop/0.20.2/tools/build-deploy-jar.py b/glusterfs-hadoop/0.20.2/tools/build-deploy-jar.py
index 3c67108e199..c20e53b39b2 100755
--- a/glusterfs-hadoop/0.20.2/tools/build-deploy-jar.py
+++ b/glusterfs-hadoop/0.20.2/tools/build-deploy-jar.py
@@ -172,9 +172,12 @@ if __name__ == '__main__':
elif k in ("-h", "--henv"):
copyHadoopEnv = True
else:
- assert False, "unhandled option"
+ pass
- assert not hadoop_dir == None, "hadoop directory missing"
+ if hadoop_dir == None:
+ print 'hadoop directory missing'
+ usage()
+ sys.exit(1)
os.chdir(os.path.dirname(sys.argv[0]) + '/..')
targetdir = './target/'