Commit 86d34dd1 authored by satmandu's avatar satmandu Committed by GitHub

Keep crew from crashing due to a malformed package file. (#5728)

* Keep crew from crashing on reading malformed package files

* clean up

* don't show duplicate error for syntax error

* Fix comparison

* Use  safe navigation operator.

* Use same fix for list compatible

* refactor compatibility

* bump

* add binary_url to package.rb

* cleanup empty space

* minimal rubocop suggested cleanup

* revert code changes which don't work in ruby

* simplify list compatible

* hide message behind debug flag.

* use empty

* move generating compatible done message
parent 29446f7e
This diff is collapsed.
# Defines common constants used in different parts of crew
CREW_VERSION = '1.9.3'
CREW_VERSION = '1.9.4'
ARCH_ACTUAL = `uname -m`.strip
# This helps with virtualized builds on aarch64 machines
......
......@@ -45,6 +45,10 @@ class Package
end
end
def self.get_binary_url (architecture)
return @binary_url.has_key?(architecture) ? @binary_url[architecture] : nil
end
def self.get_sha256 (architecture)
if !@build_from_source and @binary_sha256 and @binary_sha256.has_key?(architecture)
return @binary_sha256[architecture]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment