summaryrefslogtreecommitdiffstats
path: root/glusterfs-hadoop/0.20.2/tools/build-deploy-jar.py
diff options
context:
space:
mode:
Diffstat (limited to 'glusterfs-hadoop/0.20.2/tools/build-deploy-jar.py')
-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 3c67108e1..c20e53b39 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/'