Skip to content

Commit

Permalink
make index.arch and index.platform optional
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbe7a committed Dec 19, 2023
1 parent d9849e3 commit d0a438e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions binstar_client/inspect_package/conda.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ def _load(filename, default=None):
icon_b64 = data_uri_from(icon_path)

subdir = get_subdir(index)
machine = index['arch']
operatingsystem = os_map.get(index['platform'], index['platform'])
machine = index.get('arch', None)
platform = index.get('platform', None)

operatingsystem = os_map.get(platform, platform)

package_data = {
'name': index.pop('name'),
Expand Down

0 comments on commit d0a438e

Please sign in to comment.