Name

Pkg::SourceProvideDigestedFile — Make a digested file available at the local filesystem

Synopsis

string SourceProvideDigestedFile ( integer id ,
  integer mid ,
  string f ,
  boolean optional );
 

Parameters

integer id

Source ID

integer mid

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

string f

Filename relative to the media root.

boolean optional

true if the file can be missing on the medium, if an optional file doesn't exist do not ask user for another medium and return nil.

Return

string

local path as string

Description

Make a signed Let an InstSrc provide some file (make it available at the local filesystem). The checksum is stored either in /content file or in SHA1SUMS file. Warning: The downloaded files are removed in Pkg::SourceReleaseAll()!