[tribaal, r=gnuoy] Fix bug in deriving directory name

This commit is contained in:
Liam Young 2015-07-22 16:25:29 +01:00
parent 795237155a
commit f5baa14920
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ def install():
# The extracted dirname. Look at what's on disk instead of mangling, so
# the distribution tar.gz's name doesn't matter.
name = [f for f in os.listdir("/opt")
if f.startswith("distribution-karaf")]
if f.startswith("distribution-karaf")][0]
if not os.path.exists("/opt/opendaylight-karaf"):
os.symlink(name, "/opt/opendaylight-karaf")