Skip to content

Commit

Permalink
Really fix the fileshare mounting code in manifestutil
Browse files Browse the repository at this point in the history
  • Loading branch information
gregneagle committed Oct 21, 2016
1 parent 5a1007b commit 7013581
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/client/manifestutil
Expand Up @@ -449,12 +449,12 @@ def mount_repo_cli():
WE_MOUNTED_THE_REPO = True
else:
# do it the old way
os.mkdir(REPO_PATH)
if REPO_URL.startswith('afp:'):
os.mkdir(repo_path)
if repo_url.startswith('afp:'):
cmd = ['/sbin/mount_afp', '-i', repo_url, repo_path]
elif REPO_URL.startswith('smb:'):
elif repo_url.startswith('smb:'):
cmd = ['/sbin/mount_smbfs', repo_url[4:], repo_path]
elif REPO_URL.startswith('nfs://'):
elif repo_url.startswith('nfs://'):
cmd = ['/sbin/mount_nfs', repo_url[6:], repo_path]
else:
print >> sys.stderr, 'Unsupported filesystem URL!'
Expand Down

0 comments on commit 7013581

Please sign in to comment.