Skip to content

Commit

Permalink
Modify image_supports_caching function
Browse files Browse the repository at this point in the history
  • Loading branch information
sdarwin committed Mar 20, 2023
1 parent c6dc878 commit b42ccac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .drone.star
Expand Up @@ -509,8 +509,7 @@ def compiler_supports(compiler, version, cxx):
# This is based on an exclude-list since we want to assume
# new images will support caching
def image_supports_caching(image_str, compiler_str):
return image_str == None or not (image_str[:19] == 'cppalliance/dronevs' or compiler_str[:6] == 's390x-')

return image_str != None and not (image_str[:19] == 'cppalliance/dronevs' or compiler_str[:6] == 's390x-')

# Get list of available compiler versions in a semver range
# - compilers_in_range('gcc >=10') -> [('gcc', '12'), ('gcc', '11'), ('gcc', '10')]
Expand Down

0 comments on commit b42ccac

Please sign in to comment.