Name

Pkg::SourceProvideSignedDirectory — make a directory available at the local filesystem

Synopsis

string SourceProvideSignedDirectory ( integer id ,
  integer mid ,
  string d ,
  boolean optional ,
  boolean recursive );
 

Parameters

integer id

repository to use (id)

integer mid

Number of the media where the directory is located on ('1' for the 1st media).

string d

Directory name relative to the media root.

boolean optional

set to true if the directory may not exist (do not report errors)

boolean recursive

set to true to provide all subdirectories recursively

Return

string

local path as string or nil when an error occured

Description

Download a directory from repository (make it available at the local filesystem) and all the files within it. Requires that all files have been signed with SHA1 checksum. If there is no checksum or the checksum doesn't match the download fails. Warning: The downloaded files are removed in Pkg::SourceReleaseAll()!