YaST2 Developers Documentation: Package selections

Package selections

Packages.ycp
  • Anas Nashif

This module has an unstable interface.

Imports

  • AddOnProduct
  • Arch
  • DefaultDesktop
  • Directory
  • FileUtils
  • InstURL
  • Installation
  • Kernel
  • Label
  • Language
  • Linuxrc
  • Mode
  • PackageCallbacks
  • PackageCallbacks
  • PackagesProposal
  • Popup
  • Product
  • ProductControl
  • ProductFeatures
  • Report
  • SlideShow
  • Slides
  • SourceDialogs
  • SpaceCalculation
  • Stage
  • String
  • URL
  • Wizard
  • WorkflowManager

Includes

  • packager/load_release_notes.ycp

Global Functions

Local Variables

Local Functions

local full_repropose -> boolean

Force full proposal routine next run

local init_called -> boolean

repository has been initialized?

local init_in_progress -> boolean

repository initialization is WIP

local init_error -> string

Error which occurred during repository initialization

local additional_packages -> list<string>

Packages to be selected when proposing the list

global ListSelected (symbol what, string format) -> list<string>

List selected resolvables of specified kind

Parameters:
what symbol specifying the kind of resolvables to select
format string format string to print summaries in
Return value:
a list of selected resolvables
global CountSizeToBeInstalled () -> string

Count the total size of packages to be installed

Return value:
formatted size of packages to be installed
global CountSizeToBeDownloaded () -> integer

Count the total size of packages to be installed

Return value:
size of packages to be installed (in bytes)
global InfoAboutSubOptimalDistribution () -> string

Return information about suboptimal distribution if relevant

Return value:
the information string or empty string
global SummaryOutput (list<symbol> flags) -> list<string>

Return the summary output lines

Parameters:
flags a list of flags, allowed are `product, `pattern, `selection, `size, `desktop
Return value:
a list of the output lines
global CheckDiskSize (boolean init) -> boolean

Check if selected software fits on the partitions

Parameters:
init boolean true if partition sizes have changed
Return value:
true if selected software fits, false otherwise
global CheckOldAddOns (map & ret) -> void

Checks which products have been selected for removal and modifies the warning messages accordingly.

Parameters:
ret
global Summary (list<symbol> flags, boolean use_cache) -> map

Print the installatino proposal summary

Parameters:
flags a list of symbols, see above
use_cache
global Reset (list<symbol> keep) -> void

Reset package selection, but keep objects of specified type

Parameters:
keep a list of symbols specifying type of objects to be kept
global InitializeAddOnProducts () -> void

Initialize add-on products provided by the repository

global addAdditionalPackage (string package) -> void

Add a package to list to be selected before proposal Can be called only before the installation proposal, later doesn't have any effect. OBSOLETE! Please, use PackagesProposal::AddResolvables() instead.

Parameters:
package string package to be selected
local architecturePackages () -> list<string>

Compute architecture packages

Return value:
(string)
local graphicPackages () -> list<string>

graphicPackages () Compute graphic (x11) packages

Return value:
(string) list of rpm packages needed
local modePackages () -> list<string>

Compute special packages

Return value:
(string)
local javaPackages () -> list<string>

Compute special java packages

Return value:
(string)
local boardPackages () -> list<string>

Compute board (vendor) dependant packages

Return value:
(string)
local sourceAccessPackages () -> list<string>

Compute packages required to access the repository

Return value:
(string) list of the required packages
global ComputeSystemPackageList () -> list<string>

Build and return list of packages which depends on the the current target system and the preselected packages (architecture, X11....)

Return value:
packages
global CheckContentFile (integer source) -> boolean

Check whether content file in the specified repository is the same as the one in the ramdisk

Parameters:
source integer the repository ID to check
Return value:
true if content files match
local ImportGPGKeys () -> void

Import GPG keys found in the inst-sys

global GetBaseSourceID () -> integer

Returns ID of the base product repository.

Return value:
base source ID
global AdjustSourcePropertiesAccordingToProduct (integer src_id) -> boolean

Adjusts repository name according to LABEL in content file or a first product found on the media (as a fallback).

Parameters:
src_id
Return value:
if successful
See
BNC #481828
global Initialize (boolean show_popup) -> void

Initialize the repositories

Parameters:
show_popup boolean true to display information about initialization
global SelectProduct () -> boolean

Select the base product on the media for installation

Return value:
true on success
local SelectSystemPatterns (boolean reselect) -> void

Select system patterns

Parameters:
reselect boolean true to select only those which are alrady selected
local SelectSystemPackages (boolean reselect) -> void

Select system packages

Parameters:
reselect boolean true to select only those which are alrady selected
global Proposal (boolean force_reset, boolean reinit, boolean simple) -> map

Make a proposal for package selection

Parameters:
force_reset
reinit
simple
Return value:
for the API proposal
global InitializeCatalogs () -> void

Initialize the repositories with popup feedback Use Packages::Initialize (true) instead