Portfile: fetching/verifying a single file
Jason Liu
jasonliu at umich.edu
Sat Aug 29 03:24:13 UTC 2020
If you're fetching a single script file from a Git repo, then can't you
simply use the built-in fetch keywords, set 'fetch.type git', and then set
the extract phase to be empty?
--
Jason Liu
On Fri, Aug 28, 2020 at 10:52 PM Eric F (iEFdev) <eric at iefdev.se> wrote:
> Hi,
>
> When downloading/fetching a single (script) file from a Git repo. If I use:
>
> ```
> fetch {
> file mkdir ${worksrcpath}
> system -W ${worksrcpath} "curl -qs ${master_sites}/${_file} -o
> ${distpath}/${distname}"
> }
>
> post-checksum {
> copy ${distpath}/${distname} ${worksrcpath}
> }
> ```
>
> That works, and I can verify against the checksums, etc. But is that an ok
> method? …or is there a better &/or preferred way?
>
> · Eric
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20200828/2f60b605/attachment.htm>
More information about the macports-dev
mailing list