Skip to content

Commit

Permalink
Add ENSURE_WRITE in before UNLINK
Browse files Browse the repository at this point in the history
  • Loading branch information
tswicegood committed Apr 21, 2015
1 parent 6756f8f commit 5ff9c66
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 10 additions & 2 deletions conda/instructions.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,16 @@


progress_cmds = set([EXTRACT, RM_EXTRACTED, LINK, UNLINK])
action_codes = (FETCH, EXTRACT, UNLINK, LINK, SYMLINK_CONDA, RM_EXTRACTED,
RM_FETCHED)
action_codes = (
FETCH,
EXTRACT,
ENSURE_WRITE,
UNLINK,
LINK,
SYMLINK_CONDA,
RM_EXTRACTED,
RM_FETCHED,
)


def PREFIX_CMD(state, arg):
Expand Down
1 change: 1 addition & 0 deletions tests/test_instructions.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def test_expected_operation_order():
expected = (
instructions.FETCH,
instructions.EXTRACT,
instructions.ENSURE_WRITE,
instructions.UNLINK,
instructions.LINK,
instructions.SYMLINK_CONDA,
Expand Down

0 comments on commit 5ff9c66

Please sign in to comment.