Skip to content

Commit

Permalink
Ensure util.appinfo() handles multiple apps with the same bundle ID
Browse files Browse the repository at this point in the history
  • Loading branch information
deanishe committed Jul 22, 2018
1 parent ec3a486 commit 1f00cd3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
Binary file not shown.
3 changes: 1 addition & 2 deletions tests/test_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ def test_empty_repo(httpserver, info):
"""No releases"""
# with webget(httpserver.url):
with fakeresponse(httpserver, DATA_JSON_EMPTY, HTTP_HEADERS_JSON):
with pytest.raises(ValueError):
update.check_update(EMPTY_REPO_SLUG, '1.0')
update.check_update(EMPTY_REPO_SLUG, '1.0')
assert len(update.get_valid_releases(EMPTY_REPO_SLUG)) == 0


Expand Down
2 changes: 1 addition & 1 deletion workflow/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def appinfo(name):
"""
cmd = ['mdfind', '-onlyin', '/Applications',
'-onlyin', os.expanduser('~/Applications'),
'-onlyin', os.path.expanduser('~/Applications'),
'(kMDItemContentTypeTree == com.apple.application &&'
'(kMDItemDisplayName == "{0}" || kMDItemFSName == "{0}.app"))'
.format(name)]
Expand Down
2 changes: 1 addition & 1 deletion workflow/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.34
1.36

0 comments on commit 1f00cd3

Please sign in to comment.