diff --git a/anda/langs/crystal/crystal/update.rhai b/anda/langs/crystal/crystal/update.rhai index 4d611f9d99..b2159a6775 100644 --- a/anda/langs/crystal/crystal/update.rhai +++ b/anda/langs/crystal/crystal/update.rhai @@ -1 +1,9 @@ -rpm.version(gh("crystal-lang/crystal")); +let v = gh("crystal-lang/crystal"); +let url = `crystal-${v}-1-linux-x86_64-bundled.tar.gz`; + +if get(`https://github.com/crystal-lang/crystal/releases/expanded_assets/${v}`).contains(url) { + rpm.version(v); +} else { + print(`crystal: ${v} (waiting for bundle)`); + terminate(); +}