Skip to content

Commit

Permalink
Fix #27
Browse files Browse the repository at this point in the history
  • Loading branch information
hanslovsky committed Jan 14, 2019
1 parent 0baa04a commit f1cd9f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jgo/jgo.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,10 +391,12 @@ def resolve_dependencies(
workspace = workspace_dir_from_coordinates(coordinates, cache_dir=cache_dir)

update_cache = True if force_update else update_cache
update_cache = update_cache or os.path.isdir(workspace)
update_cache = update_cache \
or not os.path.isdir(workspace) \
or os.path.isdir(workspace) and not os.path.isfile(os.path.join(workspace, 'mainClass'))

if not update_cache:
primary_endpoint, workspace
return primary_endpoint, workspace

if update_cache:
shutil.rmtree(workspace, True)
Expand Down

0 comments on commit f1cd9f0

Please sign in to comment.