YaST2 Developers Documentation: inst_rpmcopy.ycp

inst_rpmcopy.ycp

  • Klaus Kaempf <kkaempf@suse.de>
  • Stefan Hundhammer <sh@suse.de> <sh@suse.de>
  • Arvin Schnell <arvin@suse.de>
  • Purpose:
  • Install all the RPM packages the user has selected.
  • Show installation dialogue. Show progress bars.
  • Request medium change from user.
  • Packages module :
  • "installed"

This module has an unstable interface.

Imports

  • AutoinstData
  • Directory
  • FileUtils
  • Installation
  • Kernel
  • Language
  • Linuxrc
  • Mode
  • PackageInstallation
  • Packages
  • Popup
  • Report
  • Service
  • SlideShow
  • SlideShowCallbacks
  • SourceManager
  • Stage
  • String

Includes

  • packager/storage_include.ycp

Local Variables

Local Functions

local cache_info_path -> string

File with the information about package cache (between 1st and 2nd installation stage

local store_using_disk_cache -> boolean

Is the disk cache used? (to be stored for 2nd stage)

local store_cache_directory -> string

Directory containing the cache (to be stored for 2nd stage)

local store_original_source_url -> string

Original repository URL (to be stored for 2nd stage)

local cached_source_id -> integer

Cached repository ID (during second stage)

local cache_symlink -> string

Symlink in the target system (during the first stage)

local media_sizes -> list <list <integer> >

result of Pkg::PkgMediaSizes() from actual install

local cached_source_datadir -> string

'datadir' of cached repository (usually 'suse', where packages reside

local RemoveObsoleteResolvables () -> void

Removes all already installed patches and selections. See bugzilla #210552 for more information.

local CachedSourceId () -> integer

Get the source ID of the first source to be cached

Return value:
cached source ID
local StoreDiskCacheSettings () -> void

Store information about the disk cache to the target system

local RestoreDiskCacheSettings () -> void

Restore information about the disk cache at the start of the second stage, update the symlink and source location

local CleanupDiskCache () -> void

Clean the disk cache up

local GetPkgCacheDirectory () -> string

Get the TMP directory to use for packages cache

Return value:
the directory to use
local PrepareSourceCache (integer source_id) -> void

Prepare the disk cache for the cached source

Parameters:
source_id integer source ID to be cached
local InitRemainingPackages () -> void

Fills-up 'remaining' and 'srcremaining' lists with information of objects that need to be installed.

local SomePackagesAreRemainForInstallation () -> boolean

And returns whether some objects need to be installed as the result.

Return value:
whether some packages need to be installed
local InstallRemainingAndBinarySource () -> void

Sets remaining packages to be installed