fetch
fetch
downloads a file or package. If the
downloaded package is a tar ball it will also be unpacked in current
working directory using unpack
(3).
By default, fetch
only downloads files and
packages that does not exist in the local tree. Options
--force-fetch
and --update
to the
script changes that behaviour.
dest
=directoryThe destination directory of the file or package to fetch.
rev
=revisionThe revision of the file or package to fetch.
root
=urlThe repository root of the file or package to fetch.
fetch
uses the wget application for downloading
files and packages via HTTP, HTTPS and FTP. So wget must be installed.
When downloading from a password protected site, wget searches .wgetrc
for user and password.
When package is a regular file and
dest
is specified, fetch
will
think that the file exists even if it has been removed and will
therefore not download it unless forced by option
--force-fetch
or --update
to the
script.