mirror of
https://github.com/ivabus/pantry
synced 2025-06-08 08:20:32 +03:00
sync with tea/cli
This commit is contained in:
parent
fd439d99f0
commit
c58d3db8c9
3 changed files with 4 additions and 6 deletions
|
@ -7,9 +7,7 @@ versions:
|
|||
|
||||
provides:
|
||||
- bin/python
|
||||
- bin/python3
|
||||
- bin/pip
|
||||
- bin/pip3
|
||||
- bin/python3 #FIXME this is only true of python 3
|
||||
|
||||
dependencies:
|
||||
# recommended but none are actually required
|
||||
|
|
|
@ -97,7 +97,7 @@ async function __build(pkg: Package) {
|
|||
}).chmod(0o500)
|
||||
|
||||
// copy in auxillary files from pantry directory
|
||||
for await (const [path, {isFile}] of pantry.prefix(pkg).ls()) {
|
||||
for await (const [path, {isFile}] of pantry.getYAML(pkg).path.parent().ls()) {
|
||||
if (isFile) {
|
||||
path.cp({ into: src.join("props").mkdir() })
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ const self = await (async () => {
|
|||
return await cellar.resolve(pkg)
|
||||
})()
|
||||
|
||||
const [yml] = await pantry.getYAML(self.pkg)
|
||||
const yml = await pantry.getYAML(self.pkg).parse()
|
||||
const deps = await deps4(self.pkg)
|
||||
const installations = await prepare(deps)
|
||||
const env = useShellEnv([self, ...installations])
|
||||
|
@ -62,7 +62,7 @@ try {
|
|||
text += await pantry.getScript(self.pkg, 'test', installations)
|
||||
text += "\n"
|
||||
|
||||
for await (const [path, {name, isFile}] of pantry.prefix(self.pkg).ls()) {
|
||||
for await (const [path, {name, isFile}] of pantry.getYAML(self.pkg).path.parent().ls()) {
|
||||
if (isFile && name != 'package.yml') path.cp({ into: cwd })
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue