Package Repository Management |
modules/SourceManager.ycp |
SourceManager settings, input and output functions | |
|
|
This module has an unstable interface. |
Prototypes
Data was modified?
Abort function return boolean return true if abort
Abort function
- Return value:
-
return true if abort
Data was modified?
- Return value:
-
true if modified
Read all source-manager settings
- Return value:
-
true on success
Commit changed repositories
Write all repository-manager settings
- Return value:
-
true on success
Get all repository-manager settings from the first parameter (For use by autoinstallation.)
- Parameters:
-
settings The YCP structure to be imported.
- Return value:
-
True on success
Dump the repository-manager settings to a single map (For use by autoinstallation.)
- Return value:
-
Dumped settings (later acceptable by Import ())
Get Repository ID by index
- Parameters:
-
idx
Set current used repository URL by index
- Parameters:
-
idx
Get Repository ID when only URL is known
- Parameters:
-
url
Gather Repository Metadata
- Parameters:
-
source
Create a repository from an URL
- Parameters:
-
url
Delete repository by Repository ID
- Parameters:
-
SrcId
Delete Repository by the repository index
- Parameters:
-
idx
Delete Repository by repository URL
- Parameters:
-
url
Create Summary Item
- Parameters:
-
index source
Create Repository Item for Overview
- Parameters:
-
index source
Handle Multiple repositories URLs (order/instorder)
- Parameters:
-
url
Create a textual summary and a list of unconfigured cards
- Return value:
-
summary of the current configuration
Create an overview table with all configured cards
- Return value:
-
table items
Obsoleted (empty implementation), ZMD (ZLM7.3) on sle11 supports only HTTP and FTP repositories, sync would fail for other types. See bnc#480845 for more details.
- Parameters:
-
added_src_ids dummy parameter deleted_src_ids dummy parameter
- Return value:
-
success - always true
Parse a URL query (already unescaped) to a map. If no equal sign, the value will be nil.
- Parameters:
-
query foo=bar&baz=qux
- Return value:
-
$["foo": "bar", "baz": "qux"]
- Parameters:
-
attr SourceGeneralData item
- Return value:
-
For existing repositories, get a mapping from an attribute to the id
- Return value:
-
For existing repositories, get a mapping from the alias to the id
- Return value:
-
For existing repositories, get a mapping from the URL to the id
Extract an alias parameter from the URL and check whether we have such a repository already.
- Parameters:
-
url a repository with an alias parameter (actually optional) alias_to_id a premade mapping, @see get_alias_to_id url_to_id
- Return value:
-
the repository id or -1
Used by registration. ZMD sync has been disabled - ZLM7.3 on sle11 supports only HTTP and FTP repositories, sync would fail for other types. See bnc#480845 for more details.
- Parameters:
-
urls URLs to add
- Return value:
-
a list of added URLs
- Parameters:
-
message
Function returns the partiton name which is used as a repository for the installation (IF any partition is used as a repository for installation, of course). Otherwise it returns an empty string "". See bugzilla #208222 for more information.
- Return value:
-
partition name
Finds the biggest temporary directory and uses it as packager download area.