unpackaged keys (unrendered currently)

This commit is contained in:
Max Howell 2023-01-02 11:24:33 -05:00
parent 53f9a11954
commit c78878a22f
No known key found for this signature in database
GPG key ID: 741BB84EF5BB9EEC
2 changed files with 9 additions and 2 deletions

View file

@ -1,5 +1,5 @@
distributable:
url: https://www.python.org/ftp/python/{{ version }}/Python-{{ version }}.tar.xz
url: https://www.python.org/ftp/python/{{ version.raw }}/Python-{{ version.raw }}.tar.xz
strip-components: 1
versions:
@ -8,6 +8,12 @@ versions:
companions:
pip.pypa.io: '*'
unpackaged:
- version: ^2
platform: darwin
arch: aarc64
reason: help-wanted
provides:
- bin/python
- bin/python{{version.major}}

View file

@ -153,7 +153,8 @@ async function fetch_src(pkg: Package): Promise<[Path, Path] | undefined> {
cmd: [script.string, pkgstr(pkg)],
stdout: 'piped'
})
const out = await proc.output()
const [out, status] = await Promise.all([proc.output(), proc.status()])
if (!status.success) throw new Error()
const [dstdir, tarball] = new TextDecoder().decode(out).split("\n")
if (!tarball) {
// no tarball, e.g. tea.xyz/gx/cc