Skip to content

Commit

Permalink
Merge pull request #696 from 0xbe7a/index-optional
Browse files Browse the repository at this point in the history
Make `arch` and `platform` inside index.json optional
  • Loading branch information
vshevchenko-anaconda authored Feb 20, 2024
2 parents d009816 + d0a438e commit 7b157be
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 7b157be

Please sign in to comment.