Skip to content

Commit

Permalink
only add subdir if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmartian committed Apr 17, 2020
1 parent 55e3272 commit 729096d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions conda/models/match_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,9 @@ def from_dist_str(cls, dist_str):
if subdir not in context.known_subdirs:
channel_str = channel_subdir_str
subdir = None
parts.update({
'channel': channel_str,
'subdir': subdir,
})
parts['channel'] = channel_str
if subdir:
parts['subdir'] = subdir
else:
parts['channel'] = channel_subdir_str

Expand Down

0 comments on commit 729096d

Please sign in to comment.