Name
Pkg::RepositoryAdd — Register a new repository
Synopsis
integer
RepositoryAdd
( |
map
map
) ; |
Parameters
-
map
map
with repository parameters: $[ "enabled" : boolean, "autorefresh" : boolean, "name" : string, "alias" : string, "base_urls" : list<string>, "check_alias" : boolean, "priority" : integer, "prod_dir" : string, "type" : string ]
Return
-
integer
Repository ID or nil on error
Description
Adds a new repository to the internal structures. The repository is only registered, metadata is not downloaded, use Pkg::SourceRefreshNow() for that. The metadata is also loaded automatically when loading the repository content (Pkg::SourceLoad())