YaST2 Developers Documentation: repositories.ycp

repositories.ycp

  • Cornelius Schumacher
  • Ladislav Slezak
  • Purpose:
  • Adding, removing and prioritizing of repositories for packagemanager.

This module has an unstable interface.

Imports

  • CommandLine
  • Confirm
  • Directory
  • Label
  • Mode
  • PackageCallbacks
  • PackageLock
  • Popup
  • Progress
  • Report
  • Sequencer
  • SourceDialogs
  • SourceManager
  • URL
  • Wizard

Includes

  • packager/inst_source_dialogs.ycp
  • packager/key_manager_dialogs.ycp
  • packager/repositories_include.ycp

Local Functions

local createItem (integer index, map source, boolean repository_mode) -> term

Create a table item from a map as returned by the InstSrcManager agent.

Parameters:
index
source The map describing the source as returned form the agent.
repository_mode
Return value:
An item suitable for addition to a Table.
local fillTable (boolean repo_mode, string service_name) -> void

Fill sources table with entries from the InstSrcManager agent.

Parameters:
repo_mode
service_name
local newSources (list<map<string,any> > statesOld, list<map<string,any> > statesNew) -> list<integer>

Find which repositories have to be added or deleted to ZENworks. #182992: formerly we did not consider the enabled attribute. But ZENworks cannot completely disable a repository (unsubscribing a repository merely decreases its priority) so we consider a disabled repository like a deleted one.

Parameters:
statesOld sourceStates{In or Out}
statesNew sourceStates{In or Out}
Return value:
the list of SrcId's that are enabled in statesNew but are not enabled in statesOld