YaST2 Developers Documentation: yast2-installation

yast2-installation

clients/inst_extrasources.ycp
Automatically register software repositories from content file
  • Ladislav Slezák
  • Lukas Ocilka
  • This client loads the target and initializes the package manager.
  • Adds all sources defined in control file (software->extra_urls)
  • and stores them at the end.

This module has an unstable interface.

Imports

  • GetInstArgs
  • Installation
  • Mode
  • PackageCallbacks
  • PackageLock
  • ProductControl
  • ProductFeatures
  • SourceManager

Local Functions

local GetURLsToRegister (list <string> registered) -> list <map>

Returns list of maps of repositories to register. See bnc #381360.

Parameters:
registered URLs of already registered repositories (they will be ignored to not register the same repository one more)
Return value:
of URLs to register
local RegisterRepos (list <map> url_list) -> list <integer>

Register the installation sources in offline mode (no network connection required). The repository metadata will be downloaded by sw_single (or another yast module) when the repostory is enabled

Parameters:
url_list
Return value:
list of created source IDs
local RegisteredUrls () -> list<string>

Returns list of already registered repositories.

Return value:
of registered repositories