YaST2 Developers Documentation: repositories.ycp

repositories.ycp

  • Cornelius Schumacher <cschum@suse.de>
  • Ladislav Slezak <lslezak@suse.cz>
  • Purpose:
  • Adding, removing and prioritizing of repositories for packagemanager.

This module has an unstable interface.

Imports

  • AddOnProduct
  • CommandLine
  • Confirm
  • Directory
  • Installation
  • Label
  • Mode
  • PackageCallbacks
  • PackageLock
  • PackageSystem
  • 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) -> 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.
Return value:
An item suitable for addition to a Table.
local fillTable () -> void

Fill sources table with entries from the InstSrcManager agent.

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