fetch

Name

fetch  --  download a file or package

Synopsis

fetch {package} [rev=revision] [root=url] [dest=directory]

Description

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.

Options

dest=directory

The destination directory of the file or package to fetch.

rev=revision

The revision of the file or package to fetch.

root=url

The repository root of the file or package to fetch.

Caveats

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.

Bugs

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.

Example

Download apps/busybox and use packages/apps/busybox/my_busybox_conf to build it:

    fetch apps/busybox rev=IR1_0_0-1
    sub packages/apps/busybox/my_busybox_conf rev=R1_0_0
    

See Also

repository_root(3), sub(3), unpack(3)