[aur-general] Support for source mirror lists in PKGBUILD
ido at kernel.org
Thu Oct 31 13:46:07 EDT 2013
What's the current recommended way to support multiple mirrors for the
same source file in a PKGBUILD? For example, I have xyz-123.tar.gz that
can be downloaded from any of "http://a.example.com/xyz-123.tar.gz" "
one of these may be down at any given time.
If there's no support for this in the sources array itself, we should
strongly consider adding it. For example, an ad-hoc way:
# ... do something smart in here
A less ad-hoc way:
#...some code that returns a list of URLs/files
source=(...files without mirrors as usual...)
sourcemirrored=( xyz-123::($mirroraURL $mirrorbURL $mirrorcURL) )
Mirrored sources seem like a common enough phenomenon that it's worth
special treatment to make the source PKGBUILD variable more versatile if
they're not currently supported. Thoughts?
More information about the aur-general