fetch_local_src – unpack local sources of a package to its build directory.

Description

The method extracts original sources to directory S. Original sources must be available locally either in ANYSRCDIR either in DISTDIR. Sources may be available as plain directory, named after package: P and MY_P are checked. Sources may be available as packed tarball as well. Name MY_P with possible extension of .tar.xz, .txz, .tar.gz, .tgz, .tar.bz2, .tbz2 or .tz2 is checked. See fetch_remote_src(3) for description of original and development sources.

If plain directory is found at the local place, it will be copied to create S instead of packed tarball. If no suitable sources are found, method prints diagnostics to stdout. According diagnostic message is kept in engine variable msg_FETCH_STOP.

Final result is directory S, prepared for further stages. It contains name P, not MY_P, as original source may has been named.

Writing

The method writes to WORKDIR and S.

Variables

The method uses any-api(7) variables:
WORKDIR
MY_P
P
ANYSRCDIR
S

The method uses engine variables:

msg_FETCH_STOP

Options

None options affect the method.

See also