Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Examples

PkgModuleFunctions Class Reference

#include <PkgModuleFunctions.h>

Inheritance diagram for PkgModuleFunctions:

Y2Namespace PkgModule List of all members.

Public Types

typedef PkgModuleError Error

Public Member Functions

YCPValue InstSysMode ()
YCPValue SetLocale (const YCPString &locale)
YCPValue GetLocale ()
YCPValue SetAdditionalLocales (YCPList args)
YCPValue GetAdditionalLocales ()
YCPValue LastError ()
YCPValue LastErrorDetails ()
YCPValue LastErrorId ()
YCPValue CallbackStartProvide (const YCPString &func)
YCPValue CallbackProgressProvide (const YCPString &func)
YCPValue CallbackDoneProvide (const YCPString &func)
YCPValue CallbackStartPackage (const YCPString &func)
YCPValue CallbackProgressPackage (const YCPString &func)
YCPValue CallbackDonePackage (const YCPString &func)
YCPValue CallbackStartDownload (const YCPString &func)
YCPValue CallbackProgressDownload (const YCPString &func)
YCPValue CallbackDoneDownload (const YCPString &func)
YCPValue CallbackMediaChange (const YCPString &func)
YCPValue CallbackSourceChange (const YCPString &func)
YCPValue CallbackYouProgress (const YCPString &func)
YCPValue CallbackYouPatchProgress (const YCPString &func)
YCPValue CallbackYouError (const YCPString &func)
YCPValue CallbackYouMessage (const YCPString &func)
YCPValue CallbackYouLog (const YCPString &func)
YCPValue CallbackYouExecuteYcpScript (const YCPString &func)
YCPValue CallbackYouScriptProgress (const YCPString &func)
YCPValue CallbackStartRebuildDb (const YCPString &func)
YCPValue CallbackProgressRebuildDb (const YCPString &func)
YCPValue CallbackNotifyRebuildDb (const YCPString &func)
YCPValue CallbackStopRebuildDb (const YCPString &func)
YCPValue CallbackStartConvertDb (const YCPString &func)
YCPValue CallbackProgressConvertDb (const YCPString &func)
YCPValue CallbackNotifyConvertDb (const YCPString &func)
YCPValue CallbackStopConvertDb (const YCPString &func)
void SetMediaCallback (PM::ISrcId source_id)
YCPValue SourceStartManager (const YCPBoolean &)
YCPValue SourceCreate (const YCPString &, const YCPString &)
YCPValue SourceStartCache (const YCPBoolean &)
YCPValue SourceGetCurrent (const YCPBoolean &enabled)
YCPValue SourceFinish (const YCPInteger &)
YCPValue SourceFinishAll ()
YCPValue SourceGeneralData (const YCPInteger &)
YCPValue SourceMediaData (const YCPInteger &)
YCPValue SourceProductData (const YCPInteger &)
YCPValue SourceProvideFile (const YCPInteger &, const YCPInteger &, const YCPString &)
YCPValue SourceProvideDir (const YCPInteger &, const YCPInteger &, const YCPString &)
YCPValue SourceCacheCopyTo (const YCPString &)
YCPValue SourceSetRamCache (const YCPBoolean &)
YCPValue SourceProduct (const YCPInteger &)
YCPValue SourceSetEnabled (const YCPInteger &, const YCPBoolean &)
YCPValue SourceDelete (const YCPInteger &)
YCPValue SourceRaisePriority (const YCPInteger &)
YCPValue SourceLowerPriority (const YCPInteger &)
YCPValue SourceSaveRanks ()
YCPValue SourceChangeUrl (const YCPInteger &, const YCPString &)
YCPValue SourceInstallOrder (const YCPMap &)
YCPValue SourceEditGet ()
YCPValue SourceEditSet (const YCPList &args)
YCPValue SourceScan (const YCPString &media, const YCPString &product_dir)
YCPValue TargetInit (const YCPString &root, const YCPBoolean &n)
YCPBoolean TargetFinish ()
YCPBoolean TargetLogfile (const YCPString &)
YCPInteger TargetCapacity (const YCPString &)
YCPInteger TargetUsed (const YCPString &)
YCPInteger TargetBlockSize (const YCPString &)
YCPValue TargetUpdateInf (const YCPString &)
YCPBoolean TargetInstall (const YCPString &)
YCPBoolean TargetRemove (const YCPString &)
YCPList TargetProducts ()
YCPBoolean TargetRebuildDB ()
YCPValue TargetInitDU (const YCPList &)
YCPValue TargetGetDU ()
YCPBoolean TargetFileHasOwner (const YCPString &)
YCPValue GetSelections (const YCPSymbol &stat, const YCPString &cat)
YCPValue GetBackupPath ()
YCPValue SetBackupPath (const YCPString &path)
YCPValue CreateBackups (const YCPBoolean &flag)
YCPValue SelectionData (const YCPString &cat)
YCPValue SelectionContent (const YCPString &, const YCPBoolean &, const YCPString &)
YCPBoolean SetSelection (const YCPString &)
YCPValue ClearSelection (const YCPString &)
YCPBoolean ActivateSelections ()
YCPValue GetPackages (const YCPSymbol &which, const YCPBoolean &names_only)
YCPValue FilterPackages (const YCPBoolean &byAuto, const YCPBoolean &byApp, const YCPBoolean &byUser, const YCPBoolean &names_only)
YCPValue IsProvided (const YCPString &tag)
YCPValue IsSelected (const YCPString &tag)
YCPValue IsAvailable (const YCPString &tag)
YCPValue DoProvide (const YCPList &args)
YCPValue DoRemove (const YCPList &args)
YCPValue PkgSummary (const YCPString &package)
YCPValue PkgVersion (const YCPString &package)
YCPValue PkgSize (const YCPString &package)
YCPValue PkgGroup (const YCPString &package)
YCPValue PkgLocation (const YCPString &package)
YCPValue PkgProperties (const YCPString &package)
YCPList PkgGetFilelist (const YCPString &package, const YCPSymbol &which)
YCPValue IsManualSelection ()
YCPValue ClearSaveState ()
YCPValue SaveState ()
YCPValue RestoreState (const YCPBoolean &)
YCPValue PkgUpdateAll (const YCPBoolean &del)
YCPValue PkgAnyToDelete ()
YCPValue PkgAnyToInstall ()
YCPValue PkgFileHasOwner (YCPList args)
YCPValue PkgInstall (const YCPString &p)
YCPValue PkgSrcInstall (const YCPString &p)
YCPValue PkgDelete (const YCPString &p)
YCPValue PkgNeutral (const YCPString &p)
YCPValue PkgReset ()
YCPBoolean PkgSolve (const YCPBoolean &filter)
YCPBoolean PkgSolveCheckTargetOnly ()
YCPValue PkgSolveErrors ()
YCPValue PkgCommit (const YCPInteger &medianr)
YCPValue PkgPrepareOrder (YCPList args)
YCPValue PkgMediaSizes ()
YCPValue PkgMediaNames ()
YCPString PkgGetLicenseToConfirm (const YCPString &package)
YCPMap PkgGetLicensesToConfirm (const YCPList &packages)
YCPMap YouStatus ()
YCPString YouGetServers (YCPReference strings)
YCPValue YouSetServer (const YCPMap &strings)
YCPValue YouGetUserPassword ()
YCPValue YouSetUserPassword (const YCPString &user, const YCPString &passwd, const YCPBoolean &persistent)
YCPValue YouRetrievePatchInfo (const YCPBoolean &download, const YCPBoolean &sign)
YCPValue YouProcessPatches ()
YCPValue YouGetDirectory ()
YCPValue YouSelectPatches ()
YCPValue YouRemovePackages ()
YCPValue YouUpdatesAvailable ()
YCPValue YouSecurityUpdatesAvailable ()
 Y2FUNCTIONCALL (Pkg, InstSysMode,"void()", PkgModuleFunctions, InstSysMode)
 Y2FUNCTIONCALL1 (Pkg, SetLocale,"void(string)", String, PkgModuleFunctions, SetLocale)
 Y2FUNCTIONCALL (Pkg, GetLocale,"string()", PkgModuleFunctions, GetLocale)
 Y2FUNCTIONCALL1 (Pkg, SetAdditionalLocales,"void(list< string >)", List, PkgModuleFunctions, SetAdditionalLocales)
 Y2FUNCTIONCALL (Pkg, GetAdditionalLocales,"list< string >()", PkgModuleFunctions, GetAdditionalLocales)
 Y2FUNCTIONCALL (Pkg, LastError,"string()", PkgModuleFunctions, LastError)
 Y2FUNCTIONCALL (Pkg, LastErrorDetails,"string()", PkgModuleFunctions, LastErrorDetails)
 Y2FUNCTIONCALL (Pkg, LastErrorId,"string()", PkgModuleFunctions, LastErrorId)
 Y2FUNCTIONCALL1 (Pkg, CallbackStartProvide,"void(string)", String, PkgModuleFunctions, CallbackStartProvide)
 Y2FUNCTIONCALL1 (Pkg, CallbackProgressProvide,"void(string)", String, PkgModuleFunctions, CallbackProgressProvide)
 Y2FUNCTIONCALL1 (Pkg, CallbackDoneProvide,"void(string)", String, PkgModuleFunctions, CallbackDoneProvide)
 Y2FUNCTIONCALL1 (Pkg, CallbackStartPackage,"void(string)", String, PkgModuleFunctions, CallbackStartPackage)
 Y2FUNCTIONCALL1 (Pkg, CallbackProgressPackage,"void(string)", String, PkgModuleFunctions, CallbackProgressPackage)
 Y2FUNCTIONCALL1 (Pkg, CallbackDonePackage,"void(string)", String, PkgModuleFunctions, CallbackDonePackage)
 Y2FUNCTIONCALL1 (Pkg, CallbackStartDownload,"void(string)", String, PkgModuleFunctions, CallbackStartDownload)
 Y2FUNCTIONCALL1 (Pkg, CallbackProgressDownload,"void(string)", String, PkgModuleFunctions, CallbackProgressDownload)
 Y2FUNCTIONCALL1 (Pkg, CallbackDoneDownload,"void(string)", String, PkgModuleFunctions, CallbackDoneDownload)
 Y2FUNCTIONCALL1 (Pkg, CallbackMediaChange,"void(string)", String, PkgModuleFunctions, CallbackMediaChange)
 Y2FUNCTIONCALL1 (Pkg, CallbackSourceChange,"void(string)", String, PkgModuleFunctions, CallbackSourceChange)
 Y2FUNCTIONCALL1 (Pkg, CallbackYouProgress,"void(string)", String, PkgModuleFunctions, CallbackYouProgress)
 Y2FUNCTIONCALL1 (Pkg, CallbackYouPatchProgress,"void(string)", String, PkgModuleFunctions, CallbackYouPatchProgress)
 Y2FUNCTIONCALL1 (Pkg, CallbackYouError,"void(string)", String, PkgModuleFunctions, CallbackYouError)
 Y2FUNCTIONCALL1 (Pkg, CallbackYouMessage,"void(string)", String, PkgModuleFunctions, CallbackYouMessage)
 Y2FUNCTIONCALL1 (Pkg, CallbackYouLog,"void(string)", String, PkgModuleFunctions, CallbackYouLog)
 Y2FUNCTIONCALL1 (Pkg, CallbackYouExecuteYcpScript,"void(string)", String, PkgModuleFunctions, CallbackYouExecuteYcpScript)
 Y2FUNCTIONCALL1 (Pkg, CallbackYouScriptProgress,"void(string)", String, PkgModuleFunctions, CallbackYouScriptProgress)
 Y2FUNCTIONCALL1 (Pkg, CallbackStartRebuildDb,"void(string)", String, PkgModuleFunctions, CallbackStartRebuildDb)
 Y2FUNCTIONCALL1 (Pkg, CallbackProgressRebuildDb,"void(string)", String, PkgModuleFunctions, CallbackProgressRebuildDb)
 Y2FUNCTIONCALL1 (Pkg, CallbackNotifyRebuildDb,"void(string)", String, PkgModuleFunctions, CallbackNotifyRebuildDb)
 Y2FUNCTIONCALL1 (Pkg, CallbackStopRebuildDb,"void(string)", String, PkgModuleFunctions, CallbackStopRebuildDb)
 Y2FUNCTIONCALL1 (Pkg, CallbackStartConvertDb,"void(string)", String, PkgModuleFunctions, CallbackStartConvertDb)
 Y2FUNCTIONCALL1 (Pkg, CallbackProgressConvertDb,"void(string)", String, PkgModuleFunctions, CallbackProgressConvertDb)
 Y2FUNCTIONCALL1 (Pkg, CallbackNotifyConvertDb,"void(string)", String, PkgModuleFunctions, CallbackNotifyConvertDb)
 Y2FUNCTIONCALL1 (Pkg, CallbackStopConvertDb,"void(string)", String, PkgModuleFunctions, CallbackStopConvertDb)
 Y2FUNCTIONCALL1 (Pkg, SourceStartManager,"boolean(boolean)", Boolean, PkgModuleFunctions, SourceStartManager)
 Y2FUNCTIONCALL2 (Pkg, SourceCreate,"integer(string, string)", String, String, PkgModuleFunctions, SourceCreate)
 Y2FUNCTIONCALL1 (Pkg, SourceStartCache,"list< integer >(boolean)", Boolean, PkgModuleFunctions, SourceStartCache)
 Y2FUNCTIONCALL1 (Pkg, SourceGetCurrent,"list< integer >(boolean)", Boolean, PkgModuleFunctions, SourceGetCurrent)
 Y2FUNCTIONCALL1 (Pkg, SourceFinish,"boolean(integer)", Integer, PkgModuleFunctions, SourceFinish)
 Y2FUNCTIONCALL (Pkg, SourceFinishAll,"boolean()", PkgModuleFunctions, SourceFinishAll)
 Y2FUNCTIONCALL1 (Pkg, SourceGeneralData,"map< string, any >(integer)", Integer, PkgModuleFunctions, SourceGeneralData)
 Y2FUNCTIONCALL1 (Pkg, SourceMediaData,"map< string, any >(integer)", Integer, PkgModuleFunctions, SourceMediaData)
 Y2FUNCTIONCALL1 (Pkg, SourceProductData,"map< string, any >(integer)", Integer, PkgModuleFunctions, SourceProductData)
 Y2FUNCTIONCALL3 (Pkg, SourceProvideFile,"string(integer, integer, string)", Integer, Integer, String, PkgModuleFunctions, SourceProvideFile)
 Y2FUNCTIONCALL3 (Pkg, SourceProvideDir,"string(integer, integer, string)", Integer, Integer, String, PkgModuleFunctions, SourceProvideDir)
 Y2FUNCTIONCALL1 (Pkg, SourceCacheCopyTo,"boolean(string)", String, PkgModuleFunctions, SourceCacheCopyTo)
 Y2FUNCTIONCALL1 (Pkg, SourceSetRamCache,"boolean(boolean)", Boolean, PkgModuleFunctions, SourceSetRamCache)
 Y2FUNCTIONCALL1 (Pkg, SourceProduct,"map< string, string >(integer)", Integer, PkgModuleFunctions, SourceProduct)
 Y2FUNCTIONCALL2 (Pkg, SourceSetEnabled,"boolean(integer, boolean)", Integer, Boolean, PkgModuleFunctions, SourceSetEnabled)
 Y2FUNCTIONCALL1 (Pkg, SourceDelete,"boolean(integer)", Integer, PkgModuleFunctions, SourceDelete)
 Y2FUNCTIONCALL1 (Pkg, SourceRaisePriority,"void(integer)", Integer, PkgModuleFunctions, SourceRaisePriority)
 Y2FUNCTIONCALL1 (Pkg, SourceLowerPriority,"void(integer)", Integer, PkgModuleFunctions, SourceLowerPriority)
 Y2FUNCTIONCALL (Pkg, SourceSaveRanks,"boolean()", PkgModuleFunctions, SourceSaveRanks)
 Y2FUNCTIONCALL2 (Pkg, SourceChangeUrl,"boolean(integer, string)", Integer, String, PkgModuleFunctions, SourceChangeUrl)
 Y2FUNCTIONCALL1 (Pkg, SourceInstallOrder,"boolean(map< integer, integer >)", Map, PkgModuleFunctions, SourceInstallOrder)
 Y2FUNCTIONCALL (Pkg, SourceEditGet,"list< map< string, any >>()", PkgModuleFunctions, SourceEditGet)
 Y2FUNCTIONCALL1 (Pkg, SourceEditSet,"boolean(list< map< string, any >>)", List, PkgModuleFunctions, SourceEditSet)
 Y2FUNCTIONCALL2 (Pkg, SourceScan,"list< integer >(string, string)", String, String, PkgModuleFunctions, SourceScan)
 Y2FUNCTIONCALL2 (Pkg, TargetInit,"boolean(string, boolean)", String, Boolean, PkgModuleFunctions, TargetInit)
 Y2FUNCTIONCALL (Pkg, TargetFinish,"boolean()", PkgModuleFunctions, TargetFinish)
 Y2FUNCTIONCALL1 (Pkg, TargetLogfile,"boolean(string)", String, PkgModuleFunctions, TargetLogfile)
 Y2FUNCTIONCALL1 (Pkg, TargetCapacity,"integer(string)", String, PkgModuleFunctions, TargetCapacity)
 Y2FUNCTIONCALL1 (Pkg, TargetUsed,"integer(string)", String, PkgModuleFunctions, TargetUsed)
 Y2FUNCTIONCALL1 (Pkg, TargetBlockSize,"integer(string)", String, PkgModuleFunctions, TargetBlockSize)
 Y2FUNCTIONCALL1 (Pkg, TargetUpdateInf,"map< string, string >(string)", String, PkgModuleFunctions, TargetUpdateInf)
 Y2FUNCTIONCALL1 (Pkg, TargetInstall,"boolean(string)", String, PkgModuleFunctions, TargetInstall)
 Y2FUNCTIONCALL1 (Pkg, TargetRemove,"boolean(string)", String, PkgModuleFunctions, TargetRemove)
 Y2FUNCTIONCALL (Pkg, TargetProducts,"list< any >()", PkgModuleFunctions, TargetProducts)
 Y2FUNCTIONCALL (Pkg, TargetRebuildDB,"boolean()", PkgModuleFunctions, TargetRebuildDB)
 Y2FUNCTIONCALL1 (Pkg, TargetInitDU,"void(list< map< any, any > >)", List, PkgModuleFunctions, TargetInitDU)
 Y2FUNCTIONCALL (Pkg, TargetGetDU,"map< string, list< integer >>()", PkgModuleFunctions, TargetGetDU)
 Y2FUNCTIONCALL1 (Pkg, TargetFileHasOwner,"boolean(string)", String, PkgModuleFunctions, TargetFileHasOwner)
 Y2FUNCTIONCALL2 (Pkg, GetSelections,"list< string >(symbol, string)", Symbol, String, PkgModuleFunctions, GetSelections)
 Y2FUNCTIONCALL (Pkg, GetBackupPath,"string()", PkgModuleFunctions, GetBackupPath)
 Y2FUNCTIONCALL1 (Pkg, SetBackupPath,"void(string)", String, PkgModuleFunctions, SetBackupPath)
 Y2FUNCTIONCALL1 (Pkg, CreateBackups,"void(boolean)", Boolean, PkgModuleFunctions, CreateBackups)
 Y2FUNCTIONCALL1 (Pkg, SelectionData,"map< string, any >(string)", String, PkgModuleFunctions, SelectionData)
 Y2FUNCTIONCALL3 (Pkg, SelectionContent,"list< string >(string, boolean, string)", String, Boolean, String, PkgModuleFunctions, SelectionContent)
 Y2FUNCTIONCALL1 (Pkg, SetSelection,"boolean(string)", String, PkgModuleFunctions, SetSelection)
 Y2FUNCTIONCALL1 (Pkg, ClearSelection,"boolean(string)", String, PkgModuleFunctions, ClearSelection)
 Y2FUNCTIONCALL (Pkg, ActivateSelections,"boolean()", PkgModuleFunctions, ActivateSelections)
 Y2FUNCTIONCALL2 (Pkg, GetPackages,"list< string >(symbol, boolean)", Symbol, Boolean, PkgModuleFunctions, GetPackages)
 Y2FUNCTIONCALL4 (Pkg, FilterPackages,"list< string >(boolean, boolean, boolean, boolean)", Boolean, Boolean, Boolean, Boolean, PkgModuleFunctions, FilterPackages)
 Y2FUNCTIONCALL1 (Pkg, IsProvided,"boolean(string)", String, PkgModuleFunctions, IsProvided)
 Y2FUNCTIONCALL1 (Pkg, IsSelected,"boolean(string)", String, PkgModuleFunctions, IsSelected)
 Y2FUNCTIONCALL1 (Pkg, IsAvailable,"boolean(string)", String, PkgModuleFunctions, IsAvailable)
 Y2FUNCTIONCALL1 (Pkg, DoProvide,"map< string, any >(list< string >)", List, PkgModuleFunctions, DoProvide)
 Y2FUNCTIONCALL1 (Pkg, DoRemove,"map< string, any >(list< string >)", List, PkgModuleFunctions, DoRemove)
 Y2FUNCTIONCALL1 (Pkg, PkgSummary,"string(string)", String, PkgModuleFunctions, PkgSummary)
 Y2FUNCTIONCALL1 (Pkg, PkgVersion,"string(string)", String, PkgModuleFunctions, PkgVersion)
 Y2FUNCTIONCALL1 (Pkg, PkgSize,"integer(string)", String, PkgModuleFunctions, PkgSize)
 Y2FUNCTIONCALL1 (Pkg, PkgGroup,"string(string)", String, PkgModuleFunctions, PkgGroup)
 Y2FUNCTIONCALL1 (Pkg, PkgLocation,"string(string)", String, PkgModuleFunctions, PkgLocation)
 Y2FUNCTIONCALL1 (Pkg, PkgProperties,"map< string, any >(string)", String, PkgModuleFunctions, PkgProperties)
 Y2FUNCTIONCALL2 (Pkg, PkgGetFilelist,"list< string >(string, symbol)", String, Symbol, PkgModuleFunctions, PkgGetFilelist)
 Y2FUNCTIONCALL (Pkg, IsManualSelection,"boolean()", PkgModuleFunctions, IsManualSelection)
 Y2FUNCTIONCALL (Pkg, ClearSaveState,"boolean()", PkgModuleFunctions, ClearSaveState)
 Y2FUNCTIONCALL (Pkg, SaveState,"boolean()", PkgModuleFunctions, SaveState)
 Y2FUNCTIONCALL1 (Pkg, RestoreState,"boolean(boolean)", Boolean, PkgModuleFunctions, RestoreState)
 Y2FUNCTIONCALL1 (Pkg, PkgUpdateAll,"list< integer >(boolean)", Boolean, PkgModuleFunctions, PkgUpdateAll)
 Y2FUNCTIONCALL (Pkg, PkgAnyToDelete,"boolean()", PkgModuleFunctions, PkgAnyToDelete)
 Y2FUNCTIONCALL (Pkg, AnyToInstall,"boolean()", PkgModuleFunctions, PkgAnyToInstall)
 Y2FUNCTIONCALL1 (Pkg, PkgInstall,"boolean(string)", String, PkgModuleFunctions, PkgInstall)
 Y2FUNCTIONCALL1 (Pkg, PkgSrcInstall,"boolean(string)", String, PkgModuleFunctions, PkgSrcInstall)
 Y2FUNCTIONCALL1 (Pkg, PkgDelete,"boolean(string)", String, PkgModuleFunctions, PkgDelete)
 Y2FUNCTIONCALL1 (Pkg, PkgNeutral,"boolean(string)", String, PkgModuleFunctions, PkgNeutral)
 Y2FUNCTIONCALL (Pkg, PkgReset,"boolean()", PkgModuleFunctions, PkgReset)
 Y2FUNCTIONCALL1 (Pkg, PkgSolve,"boolean(boolean)", Boolean, PkgModuleFunctions, PkgSolve)
 Y2FUNCTIONCALL (Pkg, PkgSolveCheckTargetOnly,"boolean()", PkgModuleFunctions, PkgSolveCheckTargetOnly)
 Y2FUNCTIONCALL (Pkg, PkgSolveErrors,"integer()", PkgModuleFunctions, PkgSolveErrors)
 Y2FUNCTIONCALL1 (Pkg, PkgCommit,"list< any >(integer)", Integer, PkgModuleFunctions, PkgCommit)
 Y2FUNCTIONCALL (Pkg, PkgMediaSizes,"list< list< integer >>()", PkgModuleFunctions, PkgMediaSizes)
 Y2FUNCTIONCALL (Pkg, PkgMediaNames,"list< string >()", PkgModuleFunctions, PkgMediaNames)
 Y2FUNCTIONCALL1 (Pkg, PkgGetLicenseToConfirm,"string(string)", String, PkgModuleFunctions, PkgGetLicenseToConfirm)
 Y2FUNCTIONCALL1 (Pkg, PkgGetLicensesToConfirm,"map< string, string >(list< string >)", List, PkgModuleFunctions, PkgGetLicensesToConfirm)
 Y2FUNCTIONCALL (Pkg, YouStatus,"map< any, any >()", PkgModuleFunctions, YouStatus)
 Y2REFFUNCTIONCALL1 (Pkg, YouGetServers,"string(list< any > &)", List, PkgModuleFunctions, YouGetServers)
 Y2FUNCTIONCALL1 (Pkg, YouSetServer,"string(map< any, any >)", Map, PkgModuleFunctions, YouSetServer)
 Y2FUNCTIONCALL (Pkg, YouGetUserPassword,"map< any, any >()", PkgModuleFunctions, YouGetUserPassword)
 Y2FUNCTIONCALL3 (Pkg, YouSetUserPassword,"string(string, string, boolean)", String, String, Boolean, PkgModuleFunctions, YouSetUserPassword)
 Y2FUNCTIONCALL2 (Pkg, YouRetrievePatchInfo,"string(boolean, boolean)", Boolean, Boolean, PkgModuleFunctions, YouRetrievePatchInfo)
 Y2FUNCTIONCALL (Pkg, YouProcessPatches,"boolean()", PkgModuleFunctions, YouProcessPatches)
 Y2FUNCTIONCALL (Pkg, YouGetDirectory,"string()", PkgModuleFunctions, YouGetDirectory)
 Y2FUNCTIONCALL (Pkg, YouSelectPatches,"void()", PkgModuleFunctions, YouSelectPatches)
 Y2FUNCTIONCALL (Pkg, YouRemovePackages,"boolean()", PkgModuleFunctions, YouRemovePackages)
 Y2FUNCTIONCALL (Pkg, YouUpdatesAvailable,"boolean()", PkgModuleFunctions, YouUpdatesAvailable)
 Y2FUNCTIONCALL (Pkg, YouSecurityUpdatesAvailable,"boolean()", PkgModuleFunctions, YouSecurityUpdatesAvailable)
 PkgModuleFunctions ()
virtual ~PkgModuleFunctions ()
virtual const string name () const
 what namespace do we implement

virtual const string filename () const
 used for error reporting

virtual string toString () const
 unparse. useful for debugging

virtual YCPValue evaluate (bool cse=false)
 called when evaluating the import statement

virtual Y2FunctioncreateFunctionCall (const string name)

Static Public Member Functions

YCPMap YouPatch (const PMYouPatchPtr &patch)

Protected Member Functions

YCPValue pkgError (PMError err_r, const YCPValue &ret_r=YCPVoid())
PMSelectablePtr getPackageSelectable (const std::string &name)
PMSelectablePtr getSelectionSelectable (const std::string &name)
PMSelectablePtr getPatchSelectable (const std::string &name)
bool SetSelectionString (std::string name, bool recursive=false)
PMSelectablePtr WhoProvidesString (std::string tag)
bool DoProvideString (std::string name)
bool DoRemoveString (std::string name)
YCPMap Descr2Map (constInstSrcDescrPtr descr)
PMYouServer convertServerObject (const YCPMap &serverMap)

Protected Attributes

Y2PM _y2pm
PMError _last_error
int _solve_errors

Private Member Functions

bool sourceStartManager (bool autoEnable)
void registerFunctions ()

Private Attributes

CallbackHandler_callbackHandler

Detailed Description

A simple class for package management access


Member Typedef Documentation

typedef PkgModuleError PkgModuleFunctions::Error
 

default error class


Constructor & Destructor Documentation

PkgModuleFunctions::PkgModuleFunctions  ) 
 

Constructor.

PkgModuleFunctions::~PkgModuleFunctions  )  [virtual]
 

Destructor.


Member Function Documentation

YCPBoolean PkgModuleFunctions::ActivateSelections  ) 
 

Pkg::ActivateSelections () -> bool

Activate all selected selections

To be called when user is done with selections and wants to continue on the package level (or finish)

This will transfer the selection status to package status

YCPValue PkgModuleFunctions::CallbackDoneDownload const YCPString func  ) 
 

YCPValue PkgModuleFunctions::CallbackDonePackage const YCPString func  ) 
 

YCPValue PkgModuleFunctions::CallbackDoneProvide const YCPString func  ) 
 

YCPValue PkgModuleFunctions::CallbackMediaChange const YCPString func  ) 
 

YCPValue PkgModuleFunctions::CallbackNotifyConvertDb const YCPString func  ) 
 

YCPValue PkgModuleFunctions::CallbackNotifyRebuildDb const YCPString func  ) 
 

YCPValue PkgModuleFunctions::CallbackProgressConvertDb const YCPString func  ) 
 

YCPValue PkgModuleFunctions::CallbackProgressDownload const YCPString func  ) 
 

YCPValue PkgModuleFunctions::CallbackProgressPackage const YCPString func  ) 
 

YCPValue PkgModuleFunctions::CallbackProgressProvide const YCPString func  ) 
 

YCPValue PkgModuleFunctions::CallbackProgressRebuildDb const YCPString func  ) 
 

YCPValue PkgModuleFunctions::CallbackSourceChange const YCPString func  ) 
 

YCPValue PkgModuleFunctions::CallbackStartConvertDb const YCPString func  ) 
 

YCPValue PkgModuleFunctions::CallbackStartDownload const YCPString func  ) 
 

YCPValue PkgModuleFunctions::CallbackStartPackage const YCPString func  ) 
 

YCPValue PkgModuleFunctions::CallbackStartProvide const YCPString func  ) 
 

YCPValue PkgModuleFunctions::CallbackStartRebuildDb const YCPString func  ) 
 

YCPValue PkgModuleFunctions::CallbackStopConvertDb const YCPString func  ) 
 

YCPValue PkgModuleFunctions::CallbackStopRebuildDb const YCPString func  ) 
 

YCPValue PkgModuleFunctions::CallbackYouError const YCPString func  ) 
 

YCPValue PkgModuleFunctions::CallbackYouExecuteYcpScript const YCPString func  ) 
 

YCPValue PkgModuleFunctions::CallbackYouLog const YCPString func  ) 
 

YCPValue PkgModuleFunctions::CallbackYouMessage const YCPString func  ) 
 

YCPValue PkgModuleFunctions::CallbackYouPatchProgress const YCPString func  ) 
 

YCPValue PkgModuleFunctions::CallbackYouProgress const YCPString func  ) 
 

YCPValue PkgModuleFunctions::CallbackYouScriptProgress const YCPString func  ) 
 

YCPValue PkgModuleFunctions::ClearSaveState  ) 
 

Pkg::ClearSaveState() -> bool

clear a saved state (to reduce memory consumption)

YCPValue PkgModuleFunctions::ClearSelection const YCPString selection  ) 
 

Pkg::ClearSelection (string selection) -> bool

Clear a selected selection

PMYouServer PkgModuleFunctions::convertServerObject const YCPMap serverMap  )  [protected]
 

YCPValue PkgModuleFunctions::CreateBackups const YCPBoolean flag  ) 
 

Pkg::CreateBackups (boolean flag) -> void

whether to create package backups during install or removal

Y2Function * PkgModuleFunctions::createFunctionCall const string  name  )  [virtual]
 

Creates a function call instance, which can be used to call a function from this namespace. The object is NOT owned anymore by this instance, the caller can (and should) delete it.

Parameters:
name name of the required function
Returns:
an object, that can be used to call the function, or NULL on error

Implements Y2Namespace.

YCPMap PkgModuleFunctions::Descr2Map constInstSrcDescrPtr  descr  )  [protected]
 

------------------------ Convert InstSrcDescr to product info YCPMap:
$["product" : YCPString (name' 'version)
,"vendor" : YCPString
,"requires" : YCPString
,"name" : YCPString
,"version" : YCPString
,"flags" : YCPString
,"relnotesurl" : YCPString
,"distproduct" : YCPString
,"distversion" : YCPString
,"baseproduct" : YCPString
,"baseversion" : YCPString
];

YCPValue PkgModuleFunctions::DoProvide const YCPList tags  ) 
 

Pkg::DoProvide (list tags) -> $["failed1":"reason", ...]

Provides (read: installs) a list of tags to the system

tag can be a package name, a string from requires/provides or a file name (since a package implictly provides all its files)

returns a map of tag,reason pairs if tags could not be provided. Usually this map should be empty (all required packages are installed) If tags could not be provided (due to package install failures or conflicts), the tag is listed as a key and the value describes the reason for the failure (as an already translated string).

bool PkgModuleFunctions::DoProvideString std::string  name  )  [protected]
 

helper function, install a package which provides tag (as a package name, a provided tag, or a provided file

YCPValue PkgModuleFunctions::DoRemove const YCPList tags  ) 
 

Pkg::DoRemove (list tags) -> ["failed1", ...]

Removes a list of tags from the system

tag can be a package name, a string from requires/provides or a file name (since a package implictly provides all its files)

returns a map of tag,reason pairs if tags could not be removed. Usually this map should be empty (all required packages are removed) If a tag could not be removed (because other packages still require it), the tag is listed as a key and the value describes the reason for the failure (as an already translated string).

bool PkgModuleFunctions::DoRemoveString std::string  name  )  [protected]
 

virtual YCPValue PkgModuleFunctions::evaluate bool  cse = false  )  [inline, virtual]
 

called when evaluating the import statement

Implements Y2Namespace.

virtual const string PkgModuleFunctions::filename  )  const [inline, virtual]
 

used for error reporting

Implements Y2Namespace.

YCPValue PkgModuleFunctions::FilterPackages const YCPBoolean y_byAuto,
const YCPBoolean y_byApp,
const YCPBoolean y_byUser,
const YCPBoolean y_names_only
 

Pkg::FilterPackages(bool byAuto, bool byApp, bool byUser, bool names_only) -> list of strings

return list of filtered packages (["pkg1", "pkg2", ...] if names_only==true, ["pkg1 version release arch", "pkg1 version release arch", ... if names_only == false]

if one of the first 3 parameters is set to true, it returns: byAuto: packages you get by dependencies, byApp: packages you get by selections, byUser: packages the user explicitly requested.

YCPValue PkgModuleFunctions::GetAdditionalLocales  ) 
 

Pkg::GetAdditionalLocales -> list

return list of additional locales

YCPValue PkgModuleFunctions::GetBackupPath  ) 
 

Pkg::GetBackupPath () -> string

get current path for update backup of rpm config files

YCPValue PkgModuleFunctions::GetLocale  ) 
 

Pkg::GetLocale () -> string locale

get the currently preferred locale

YCPValue PkgModuleFunctions::GetPackages const YCPSymbol y_which,
const YCPBoolean y_names_only
 

Pkg::GetPackages(symbol which, bool names_only) -> list of strings

return list of packages (["pkg1", "pkg2", ...] if names_only==true, ["pkg1 version release arch", "pkg1 version release arch", ... if names_only == false]

'which' defines which packages are returned:

`installed all installed packages `selected all selected but not yet installed packages `available all available packages (from the installation source)

PMSelectablePtr PkgModuleFunctions::getPackageSelectable const std::string &  name  )  [protected]
 

helper function, get selectable by name

PMSelectablePtr PkgModuleFunctions::getPatchSelectable const std::string &  name  )  [protected]
 

helper function, get selectable by name

YCPValue PkgModuleFunctions::GetSelections const YCPSymbol stat,
const YCPString cat
 

Pkg::GetSelections (symbol status, string category) -> ["sel1", "sel2", ...]

returns a list of selection names matching the status symbol and the category. If category == "base", base selections are returned If category == "", addon selections are returned else selections matching the given category are returned

status can be:
`all : all known selections
`available : available selections
`selected : selected but not yet installed selections
`installed : installed selection

PMSelectablePtr PkgModuleFunctions::getSelectionSelectable const std::string &  name  )  [protected]
 

helper function, get selectable by name

YCPValue PkgModuleFunctions::InstSysMode  ) 
 

Pkg::InstSysMode () -> void

Set packagemanager to "inst-sys" mode

  • dont use local caches (ramdisk!)

!!!!!!!!!! CAUTION !!!!!!!!!!! Can only be called ONCE MUST be called before any other function !!!!!!!!!! CAUTION !!!!!!!!!!!

YCPValue PkgModuleFunctions::IsAvailable const YCPString tag  ) 
 

Pkg::IsAvailable (string tag) -> boolean

returns a 'true' if the tag is available on any of the currently active installation sources. (i.e. it is installable)

tag can be a package name, a string from requires/provides or a file name (since a package implictly provides all its files)

YCPValue PkgModuleFunctions::IsManualSelection  ) 
 

Pkg::IsManualSelection () -> bool

return true if the original list of packages (since the last Pkg::SetSelection()) was changed.

YCPValue PkgModuleFunctions::IsProvided const YCPString tag  ) 
 

Pkg::IsProvided (string tag) -> boolean

returns a 'true' if the tag is provided in the installed system

tag can be a package name, a string from requires/provides or a file name (since a package implictly provides all its files)

YCPValue PkgModuleFunctions::IsSelected const YCPString tag  ) 
 

Pkg::IsSelected (string tag) -> boolean

returns a 'true' if the tag is selected for installation

tag can be a package name, a string from requires/provides or a file name (since a package implictly provides all its files)

YCPValue PkgModuleFunctions::LastError  ) 
 

Pkg::LastError

get current error as string

YCPValue PkgModuleFunctions::LastErrorDetails  ) 
 

Pkg::LastErrorDetails

get current error details as string

YCPValue PkgModuleFunctions::LastErrorId  ) 
 

Pkg::LastErrorId

get current error as id string

virtual const string PkgModuleFunctions::name  )  const [inline, virtual]
 

what namespace do we implement

Reimplemented from Y2Namespace.

YCPValue PkgModuleFunctions::PkgAnyToDelete  ) 
 

Pkg::PkgAnyToDelete () -> bool

return true if any packages are to be deleted

YCPValue PkgModuleFunctions::PkgAnyToInstall  ) 
 

Pkg::AnyToInstall () -> bool

return true if any packages are to be installed

YCPValue PkgModuleFunctions::PkgCommit const YCPInteger &  media  ) 
 

Pkg::PkgCommit (integer medianr) -> [ int successful, list failed, list remaining, list srcremaining ]

Commit package changes (actually install/delete packages)

the 'successful' value will be negative, if installation was aborted !

if medianr == 0, all packages regardless of media are installed if medianr > 0, only packages from this media are installed

YCPValue PkgModuleFunctions::PkgDelete const YCPString p  ) 
 

Pkg::PkgDelete (string package) -> boolean

Select package for deletion

YCPValue PkgModuleFunctions::pkgError PMError  err_r,
const YCPValue ret_r = YCPVoid()
[protected]
 

Return the provided YCPValue and on the fly remember _last_error.

YCPValue PkgModuleFunctions::PkgFileHasOwner YCPList  args  ) 
 

YCPList PkgModuleFunctions::PkgGetFilelist const YCPString package,
const YCPSymbol which
 

Pkg::PkgGetFilelist(string name, symbol which) -> list<string>

Return, if available, the filelist of package 'name'. Symbol 'which' specifies the package instance to query:

`installed query the installed package `candidate query the candidate package `any query the candidate or the installed package (dependent on what's available)

YCPMap PkgModuleFunctions::PkgGetLicensesToConfirm const YCPList packages  ) 
 

Pkg::PkgGetLicensesToConfirm (list<string> packages) -> map<string,string>

Return a map<package,license> for all candidate packages in list, which do have a license. Unknown packages and those without license text are not returned.

YCPString PkgModuleFunctions::PkgGetLicenseToConfirm const YCPString package  ) 
 

Pkg::PkgGetLicenseToConfirm (string package) -> string

Return the candidate packages license text. Returns an empty string if package is unknown or has no license.

YCPValue PkgModuleFunctions::PkgGroup const YCPString p  ) 
 

Pkg::PkgGroup (string package) -> string

Get rpm group of a package

YCPValue PkgModuleFunctions::PkgInstall const YCPString p  ) 
 

Pkg::PkgInstall (string package) -> boolean

Select package for installation

YCPValue PkgModuleFunctions::PkgLocation const YCPString p  ) 
 

Pkg::PkgLocation (string package) -> string

Get file location of a package in the source

YCPValue PkgModuleFunctions::PkgMediaNames  ) 
 

Pkg::PkgMediaNames () -> [ "source_1_name", "source_2_name", ...] return names of sources in installation order list<string>

YCPValue PkgModuleFunctions::PkgMediaSizes  ) 
 

Pkg::PkgMediaSizes () -> [ [src1_media_1_size, src1_media_2_size, ...], [src2_media_1_size, src2_media_2_size, ...], ...] return cumulated sizes (in bytes !) to be installed from different sources and media

Returns the install size, not the archivesize !! list <list >

YCPValue PkgModuleFunctions::PkgNeutral const YCPString p  ) 
 

Pkg::PkgNeutral (string package) -> boolean

Set package to neutral (drop install/delete flags)

YCPValue PkgModuleFunctions::PkgPrepareOrder YCPList  args  ) 
 

YCPValue PkgModuleFunctions::PkgProperties const YCPString p  ) 
 

Pkg::PkgProperties (string package) -> map

Parameters:
package name
Returns:
Data about package location, source and which media contains the package
$["srcid" : YCPInteger
,"location" : YCPString
,"medianr" : YCPInteger
,"arch" : YCPString
];

YCPValue PkgModuleFunctions::PkgReset  ) 
 

Pkg::Reset () -> boolean

Reset most internal stuff on the package manager.

YCPValue PkgModuleFunctions::PkgSize const YCPString p  ) 
 

Pkg::PkgSize (string package) -> 12345678

Get (installed) size of a package

YCPBoolean PkgModuleFunctions::PkgSolve const YCPBoolean filter  ) 
 

Pkg::PkgSolve () -> boolean Optional: Pkg::PkgSolve (true) to filter all conflicts with installed packages (installed packages will be preferred)

Solve current package dependencies

YCPBoolean PkgModuleFunctions::PkgSolveCheckTargetOnly  ) 
 

Pkg::PkgSolveCheckTargetOnly () -> boolean

Solve packages currently installed on target system. Packages status remains unchanged, i.e. does not select/deselect any packages to resolve failed dependencies.

YCPValue PkgModuleFunctions::PkgSolveErrors  ) 
 

Pkg::PkgSolveErrors() -> integer only valid after a call of PkgSolve/PkgSolveCheckTargetOnly that returned false return number of fails

YCPValue PkgModuleFunctions::PkgSrcInstall const YCPString p  ) 
 

Pkg::PkgSrcInstall (string package) -> boolean

Select source of package for installation

YCPValue PkgModuleFunctions::PkgSummary const YCPString p  ) 
 

Pkg::PkgSummary (string package) -> "This is a nice package"

Get summary (aka label) of a package

YCPValue PkgModuleFunctions::PkgUpdateAll const YCPBoolean del  ) 
 

PkgUpdateAll (bool delete_unmaintained) -> [ integer affected, integer unknown ]

mark all packages for installation which are installed and have an available candidate.

Returns:
[ integer affected, integer unknown ]
This will mark packages for installation *and* for deletion (if a package provides/obsoletes another package)

!!! DOES NOT SOLVE !!

YCPValue PkgModuleFunctions::PkgVersion const YCPString p  ) 
 

Pkg::PkgVersion (string package) -> "1.42-39"

Get version (better: edition) of a package

void PkgModuleFunctions::registerFunctions  )  [private]
 

YCPValue PkgModuleFunctions::RestoreState const YCPBoolean ch  ) 
 

Pkg::RestoreState(bool check_only = false) -> bool

restore the package selection status from a former call to Pkg::SaveState() Returns false if there is no saved state (no Pkg::SaveState() called before)

If called with argument (true), it only checks the saved against the current status and returns true if they differ.

YCPValue PkgModuleFunctions::SaveState  ) 
 

Pkg::SaveState() -> bool

save the current package selection status for later retrieval via Pkg::RestoreState()

YCPValue PkgModuleFunctions::SelectionContent const YCPString sel,
const YCPBoolean to_delete,
const YCPString lang
 

Pkg::SelectionContent (string selection, boolean to_delete, string language) -> list -> ["aaa_base", "k_deflt", ... ]

Get list of packages listed in a selection

selection = name of selection to_delete = if false, return packages to be installed if true, return packages to be deleted language = if "" (empty), return only non-language specific packages else return only packages machting the language

Returns an empty list if no matching selection found Returns nil if called with wrong arguments

YCPValue PkgModuleFunctions::SelectionData const YCPString sel  ) 
 

Pkg::SelectionData (string selection) -> map -> $["summary" : "This is a nice selection", "category" : "Network", "visible" : true, "recommends" : ["sel1", "sel2", ...], "suggests" : ["sel1", "sel2", ...], "archivesize" : 12345678 "order" : "042", "requires" : ["a", "b"], "conflicts" : ["c"], "provides" : ["d"], "obsoletes" : ["e", "f"], ]

Get summary (aka label), category, visible, recommends, suggests, archivesize, order attributes of a selection, requires, conflicts, provides and obsoletes. Returns an empty list if no selection found Returns nil if called with wrong arguments

YCPValue PkgModuleFunctions::SetAdditionalLocales YCPList  langycplist  ) 
 

Pkg::SetAdditionalLocales (list of string) -> void

set list of

YCPValue PkgModuleFunctions::SetBackupPath const YCPString p  ) 
 

Pkg::SetBackupPath (string path) -> void

set current path for update backup of rpm config files

YCPValue PkgModuleFunctions::SetLocale const YCPString locale  ) 
 

Pkg::SetLocale (string locale) -> void

set the given locale as the "preferred" locale

void PkgModuleFunctions::SetMediaCallback PM::ISrcId  source_id  ) 
 

YCPBoolean PkgModuleFunctions::SetSelection const YCPString selection  ) 
 

Pkg::SetSelection (string selection) -> bool

Set a new selection

If the selection is a base selection, this effetively resets the current package selection to the packages of the newly selected base selection Usually returns true Returns false if the given string does not match a known selection.

bool PkgModuleFunctions::SetSelectionString std::string  name,
bool  recursive = false
[protected]
 

YCPValue PkgModuleFunctions::SourceCacheCopyTo const YCPString  ) 
 

YCPValue PkgModuleFunctions::SourceChangeUrl const YCPInteger &  ,
const YCPString
 

YCPValue PkgModuleFunctions::SourceCreate const YCPString ,
const YCPString
 

YCPValue PkgModuleFunctions::SourceDelete const YCPInteger &   ) 
 

YCPValue PkgModuleFunctions::SourceEditGet  ) 
 

YCPValue PkgModuleFunctions::SourceEditSet const YCPList args  ) 
 

YCPValue PkgModuleFunctions::SourceFinish const YCPInteger &   ) 
 

YCPValue PkgModuleFunctions::SourceFinishAll  ) 
 

YCPValue PkgModuleFunctions::SourceGeneralData const YCPInteger &   ) 
 

YCPValue PkgModuleFunctions::SourceGetCurrent const YCPBoolean enabled  ) 
 

YCPValue PkgModuleFunctions::SourceInstallOrder const YCPMap  ) 
 

YCPValue PkgModuleFunctions::SourceLowerPriority const YCPInteger &   ) 
 

YCPValue PkgModuleFunctions::SourceMediaData const YCPInteger &   ) 
 

YCPValue PkgModuleFunctions::SourceProduct const YCPInteger &   ) 
 

YCPValue PkgModuleFunctions::SourceProductData const YCPInteger &   ) 
 

YCPValue PkgModuleFunctions::SourceProvideDir const YCPInteger &  ,
const YCPInteger &  ,
const YCPString
 

YCPValue PkgModuleFunctions::SourceProvideFile const YCPInteger &  ,
const YCPInteger &  ,
const YCPString
 

YCPValue PkgModuleFunctions::SourceRaisePriority const YCPInteger &   ) 
 

YCPValue PkgModuleFunctions::SourceSaveRanks  ) 
 

YCPValue PkgModuleFunctions::SourceScan const YCPString media,
const YCPString product_dir
 

YCPValue PkgModuleFunctions::SourceSetEnabled const YCPInteger &  ,
const YCPBoolean
 

YCPValue PkgModuleFunctions::SourceSetRamCache const YCPBoolean  ) 
 

YCPValue PkgModuleFunctions::SourceStartCache const YCPBoolean  ) 
 

YCPValue PkgModuleFunctions::SourceStartManager const YCPBoolean  ) 
 

bool PkgModuleFunctions::sourceStartManager bool  autoEnable  )  [private]
 

YCPInteger PkgModuleFunctions::TargetBlockSize const YCPString dir  ) 
 

------------------------

Pkg::TargetBlockSize (string dir) -> integer

return block size of partition at directory

YCPInteger PkgModuleFunctions::TargetCapacity const YCPString dir  ) 
 

------------------------

Pkg::TargetCapacity (string dir) -> integer

return capacity of partition at directory

YCPBoolean PkgModuleFunctions::TargetFileHasOwner const YCPString filepath  ) 
 

Pkg::TargetFileHasOwner (string filepath) -> bool

returns the (first) package

YCPBoolean PkgModuleFunctions::TargetFinish  ) 
 

------------------------

Pkg::TargetFinish() -> bool

finish target usage

YCPValue PkgModuleFunctions::TargetGetDU  ) 
 

------------------------

Pkg::TargetGetDU (void) -> map<string, list<integer> >

return current DU calculations $[ "dir" : [ total, used, pkgusage ], .... ] total == total size for this partition used == current used size on target pkgusage == future used size on target based on current package selection

YCPValue PkgModuleFunctions::TargetInit const YCPString root,
const YCPBoolean n
 

------------------------

Pkg::TargetInit(string root, bool new) -> bool

initialized target system with root-directory if new == true, initialize new rpm database

YCPValue PkgModuleFunctions::TargetInitDU const YCPList dirlist  ) 
 

------------------------

Pkg::TargetInitDU (list(map)) -> void

init DU calculation for given directories parameter: [ $["name":"dir-without-leading-slash", "free":int_free, "used": int_used]

YCPBoolean PkgModuleFunctions::TargetInstall const YCPString filename  ) 
 

------------------------

Pkg::TargetInstall(string filename) -> bool

install rpm package by filename the filename must be an absolute path to a file which can be accessed by the package manager.

!! uses callbacks !! You should do an 'import "PackageCallbacks"' before !

YCPBoolean PkgModuleFunctions::TargetLogfile const YCPString name  ) 
 

------------------------

Pkg::TargetLogfile (string name) -> bool

init logfile for target

YCPList PkgModuleFunctions::TargetProducts  ) 
 

------------------------

Pkg::TargetProducts () -> list

return list of maps of all installed products in reverse installation order (product installed last comes first)

YCPBoolean PkgModuleFunctions::TargetRebuildDB  ) 
 

------------------------

Pkg::TargetRebuildDB () -> bool

call "rpm --rebuilddb"

YCPBoolean PkgModuleFunctions::TargetRemove const YCPString name  ) 
 

------------------------

Pkg::TargetRemove(string name) -> bool

install package by name !! uses callbacks !! You should do an 'import "PackageCallbacks"' before !

YCPValue PkgModuleFunctions::TargetUpdateInf const YCPString filename  ) 
 

------------------------

Pkg::TargetUpdateInf (string filename) -> map

return content of update.inf (usually /var/lib/YaST/update.inf) as $[ "basesystem" : "blah", "distname" : "foo", "distversion" : "bar", "distrelease" : "baz", "ftppatch" : "ftp.suse.com:/pub/suse/i386/update/8.0.99", "ftpsources" : [ "ftp.suse.com:/pub/suse/i386/current", ... ]]

YCPInteger PkgModuleFunctions::TargetUsed const YCPString dir  ) 
 

------------------------

Pkg::TargetUsed (string dir) -> integer

return usage of partition at directory

virtual string PkgModuleFunctions::toString  )  const [inline, virtual]
 

unparse. useful for debugging

Reimplemented from Y2Namespace.

PMSelectablePtr PkgModuleFunctions::WhoProvidesString std::string  tag  )  [protected]
 

helper function, find a package which provides tag (as a provided tag or a provided file)

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
YouSecurityUpdatesAvailable  ,
"boolean()"  ,
PkgModuleFunctions  ,
YouSecurityUpdatesAvailable 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
YouUpdatesAvailable  ,
"boolean()"  ,
PkgModuleFunctions  ,
YouUpdatesAvailable 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
YouRemovePackages  ,
"boolean()"  ,
PkgModuleFunctions  ,
YouRemovePackages 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
YouSelectPatches  ,
"void()"  ,
PkgModuleFunctions  ,
YouSelectPatches 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
YouGetDirectory  ,
"string()"  ,
PkgModuleFunctions  ,
YouGetDirectory 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
YouProcessPatches  ,
"boolean()"  ,
PkgModuleFunctions  ,
YouProcessPatches 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
YouGetUserPassword  ,
"map< any, any >()"  ,
PkgModuleFunctions  ,
YouGetUserPassword 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
YouStatus  ,
"map< any, any >()"  ,
PkgModuleFunctions  ,
YouStatus 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
PkgMediaNames  ,
"list< string >()"  ,
PkgModuleFunctions  ,
PkgMediaNames 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
PkgMediaSizes  ,
"list< list< integer >>()"  ,
PkgModuleFunctions  ,
PkgMediaSizes 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
PkgSolveErrors  ,
"integer()"  ,
PkgModuleFunctions  ,
PkgSolveErrors 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
PkgSolveCheckTargetOnly  ,
"boolean()"  ,
PkgModuleFunctions  ,
PkgSolveCheckTargetOnly 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
PkgReset  ,
"boolean()"  ,
PkgModuleFunctions  ,
PkgReset 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
AnyToInstall  ,
"boolean()"  ,
PkgModuleFunctions  ,
PkgAnyToInstall 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
PkgAnyToDelete  ,
"boolean()"  ,
PkgModuleFunctions  ,
PkgAnyToDelete 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
SaveState  ,
"boolean()"  ,
PkgModuleFunctions  ,
SaveState 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
ClearSaveState  ,
"boolean()"  ,
PkgModuleFunctions  ,
ClearSaveState 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
IsManualSelection  ,
"boolean()"  ,
PkgModuleFunctions  ,
IsManualSelection 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
ActivateSelections  ,
"boolean()"  ,
PkgModuleFunctions  ,
ActivateSelections 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
GetBackupPath  ,
"string()"  ,
PkgModuleFunctions  ,
GetBackupPath 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
TargetGetDU  ,
"map< string, list< integer >>()"  ,
PkgModuleFunctions  ,
TargetGetDU 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
TargetRebuildDB  ,
"boolean()"  ,
PkgModuleFunctions  ,
TargetRebuildDB 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
TargetProducts  ,
"list< any >()"  ,
PkgModuleFunctions  ,
TargetProducts 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
TargetFinish  ,
"boolean()"  ,
PkgModuleFunctions  ,
TargetFinish 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
SourceEditGet  ,
"list< map< string, any >>()"  ,
PkgModuleFunctions  ,
SourceEditGet 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
SourceSaveRanks  ,
"boolean()"  ,
PkgModuleFunctions  ,
SourceSaveRanks 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
SourceFinishAll  ,
"boolean()"  ,
PkgModuleFunctions  ,
SourceFinishAll 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
LastErrorId  ,
"string()"  ,
PkgModuleFunctions  ,
LastErrorId 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
LastErrorDetails  ,
"string()"  ,
PkgModuleFunctions  ,
LastErrorDetails 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
LastError  ,
"string()"  ,
PkgModuleFunctions  ,
LastError 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
GetAdditionalLocales  ,
"list< string >()"  ,
PkgModuleFunctions  ,
GetAdditionalLocales 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
GetLocale  ,
"string()"  ,
PkgModuleFunctions  ,
GetLocale 
 

PkgModuleFunctions::Y2FUNCTIONCALL Pkg  ,
InstSysMode  ,
"void()"  ,
PkgModuleFunctions  ,
InstSysMode 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
YouSetServer  ,
"string(map< any, any >)"  ,
Map  ,
PkgModuleFunctions  ,
YouSetServer 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
PkgGetLicensesToConfirm  ,
"map< string, string >(list< string >)"  ,
List  ,
PkgModuleFunctions  ,
PkgGetLicensesToConfirm 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
PkgGetLicenseToConfirm  ,
"string(string)"  ,
String  ,
PkgModuleFunctions  ,
PkgGetLicenseToConfirm 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
PkgCommit  ,
"list< any >(integer)"  ,
Integer  ,
PkgModuleFunctions  ,
PkgCommit 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
PkgSolve  ,
"boolean(boolean)"  ,
Boolean  ,
PkgModuleFunctions  ,
PkgSolve 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
PkgNeutral  ,
"boolean(string)"  ,
String  ,
PkgModuleFunctions  ,
PkgNeutral 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
PkgDelete  ,
"boolean(string)"  ,
String  ,
PkgModuleFunctions  ,
PkgDelete 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
PkgSrcInstall  ,
"boolean(string)"  ,
String  ,
PkgModuleFunctions  ,
PkgSrcInstall 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
PkgInstall  ,
"boolean(string)"  ,
String  ,
PkgModuleFunctions  ,
PkgInstall 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
PkgUpdateAll  ,
"list< integer >(boolean)"  ,
Boolean  ,
PkgModuleFunctions  ,
PkgUpdateAll 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
RestoreState  ,
"boolean(boolean)"  ,
Boolean  ,
PkgModuleFunctions  ,
RestoreState 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
PkgProperties  ,
"map< string, any >(string)"  ,
String  ,
PkgModuleFunctions  ,
PkgProperties 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
PkgLocation  ,
"string(string)"  ,
String  ,
PkgModuleFunctions  ,
PkgLocation 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
PkgGroup  ,
"string(string)"  ,
String  ,
PkgModuleFunctions  ,
PkgGroup 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
PkgSize  ,
"integer(string)"  ,
String  ,
PkgModuleFunctions  ,
PkgSize 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
PkgVersion  ,
"string(string)"  ,
String  ,
PkgModuleFunctions  ,
PkgVersion 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
PkgSummary  ,
"string(string)"  ,
String  ,
PkgModuleFunctions  ,
PkgSummary 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
DoRemove  ,
"map< string, any >(list< string >)"  ,
List  ,
PkgModuleFunctions  ,
DoRemove 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
DoProvide  ,
"map< string, any >(list< string >)"  ,
List  ,
PkgModuleFunctions  ,
DoProvide 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
IsAvailable  ,
"boolean(string)"  ,
String  ,
PkgModuleFunctions  ,
IsAvailable 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
IsSelected  ,
"boolean(string)"  ,
String  ,
PkgModuleFunctions  ,
IsSelected 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
IsProvided  ,
"boolean(string)"  ,
String  ,
PkgModuleFunctions  ,
IsProvided 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
ClearSelection  ,
"boolean(string)"  ,
String  ,
PkgModuleFunctions  ,
ClearSelection 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
SetSelection  ,
"boolean(string)"  ,
String  ,
PkgModuleFunctions  ,
SetSelection 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
SelectionData  ,
"map< string, any >(string)"  ,
String  ,
PkgModuleFunctions  ,
SelectionData 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CreateBackups  ,
"void(boolean)"  ,
Boolean  ,
PkgModuleFunctions  ,
CreateBackups 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
SetBackupPath  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
SetBackupPath 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
TargetFileHasOwner  ,
"boolean(string)"  ,
String  ,
PkgModuleFunctions  ,
TargetFileHasOwner 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
TargetInitDU  ,
"void(list< map< any, any > >)"  ,
List  ,
PkgModuleFunctions  ,
TargetInitDU 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
TargetRemove  ,
"boolean(string)"  ,
String  ,
PkgModuleFunctions  ,
TargetRemove 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
TargetInstall  ,
"boolean(string)"  ,
String  ,
PkgModuleFunctions  ,
TargetInstall 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
TargetUpdateInf  ,
"map< string, string >(string)"  ,
String  ,
PkgModuleFunctions  ,
TargetUpdateInf 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
TargetBlockSize  ,
"integer(string)"  ,
String  ,
PkgModuleFunctions  ,
TargetBlockSize 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
TargetUsed  ,
"integer(string)"  ,
String  ,
PkgModuleFunctions  ,
TargetUsed 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
TargetCapacity  ,
"integer(string)"  ,
String  ,
PkgModuleFunctions  ,
TargetCapacity 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
TargetLogfile  ,
"boolean(string)"  ,
String  ,
PkgModuleFunctions  ,
TargetLogfile 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
SourceEditSet  ,
"boolean(list< map< string, any >>)"  ,
List  ,
PkgModuleFunctions  ,
SourceEditSet 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
SourceInstallOrder  ,
"boolean(map< integer, integer >)"  ,
Map  ,
PkgModuleFunctions  ,
SourceInstallOrder 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
SourceLowerPriority  ,
"void(integer)"  ,
Integer  ,
PkgModuleFunctions  ,
SourceLowerPriority 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
SourceRaisePriority  ,
"void(integer)"  ,
Integer  ,
PkgModuleFunctions  ,
SourceRaisePriority 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
SourceDelete  ,
"boolean(integer)"  ,
Integer  ,
PkgModuleFunctions  ,
SourceDelete 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
SourceProduct  ,
"map< string, string >(integer)"  ,
Integer  ,
PkgModuleFunctions  ,
SourceProduct 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
SourceSetRamCache  ,
"boolean(boolean)"  ,
Boolean  ,
PkgModuleFunctions  ,
SourceSetRamCache 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
SourceCacheCopyTo  ,
"boolean(string)"  ,
String  ,
PkgModuleFunctions  ,
SourceCacheCopyTo 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
SourceProductData  ,
"map< string, any >(integer)"  ,
Integer  ,
PkgModuleFunctions  ,
SourceProductData 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
SourceMediaData  ,
"map< string, any >(integer)"  ,
Integer  ,
PkgModuleFunctions  ,
SourceMediaData 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
SourceGeneralData  ,
"map< string, any >(integer)"  ,
Integer  ,
PkgModuleFunctions  ,
SourceGeneralData 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
SourceFinish  ,
"boolean(integer)"  ,
Integer  ,
PkgModuleFunctions  ,
SourceFinish 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
SourceGetCurrent  ,
"list< integer >(boolean)"  ,
Boolean  ,
PkgModuleFunctions  ,
SourceGetCurrent 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
SourceStartCache  ,
"list< integer >(boolean)"  ,
Boolean  ,
PkgModuleFunctions  ,
SourceStartCache 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
SourceStartManager  ,
"boolean(boolean)"  ,
Boolean  ,
PkgModuleFunctions  ,
SourceStartManager 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CallbackStopConvertDb  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
CallbackStopConvertDb 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CallbackNotifyConvertDb  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
CallbackNotifyConvertDb 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CallbackProgressConvertDb  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
CallbackProgressConvertDb 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CallbackStartConvertDb  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
CallbackStartConvertDb 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CallbackStopRebuildDb  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
CallbackStopRebuildDb 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CallbackNotifyRebuildDb  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
CallbackNotifyRebuildDb 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CallbackProgressRebuildDb  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
CallbackProgressRebuildDb 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CallbackStartRebuildDb  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
CallbackStartRebuildDb 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CallbackYouScriptProgress  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
CallbackYouScriptProgress 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CallbackYouExecuteYcpScript  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
CallbackYouExecuteYcpScript 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CallbackYouLog  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
CallbackYouLog 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CallbackYouMessage  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
CallbackYouMessage 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CallbackYouError  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
CallbackYouError 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CallbackYouPatchProgress  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
CallbackYouPatchProgress 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CallbackYouProgress  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
CallbackYouProgress 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CallbackSourceChange  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
CallbackSourceChange 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CallbackMediaChange  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
CallbackMediaChange 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CallbackDoneDownload  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
CallbackDoneDownload 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CallbackProgressDownload  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
CallbackProgressDownload 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CallbackStartDownload  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
CallbackStartDownload 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CallbackDonePackage  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
CallbackDonePackage 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CallbackProgressPackage  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
CallbackProgressPackage 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CallbackStartPackage  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
CallbackStartPackage 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CallbackDoneProvide  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
CallbackDoneProvide 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CallbackProgressProvide  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
CallbackProgressProvide 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
CallbackStartProvide  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
CallbackStartProvide 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
SetAdditionalLocales  ,
"void(list< string >)"  ,
List  ,
PkgModuleFunctions  ,
SetAdditionalLocales 
 

PkgModuleFunctions::Y2FUNCTIONCALL1 Pkg  ,
SetLocale  ,
"void(string)"  ,
String  ,
PkgModuleFunctions  ,
SetLocale 
 

PkgModuleFunctions::Y2FUNCTIONCALL2 Pkg  ,
YouRetrievePatchInfo  ,
"string(boolean, boolean)"  ,
Boolean  ,
Boolean  ,
PkgModuleFunctions  ,
YouRetrievePatchInfo 
 

PkgModuleFunctions::Y2FUNCTIONCALL2 Pkg  ,
PkgGetFilelist  ,
"list< string >(string, symbol)"  ,
String  ,
Symbol  ,
PkgModuleFunctions  ,
PkgGetFilelist 
 

PkgModuleFunctions::Y2FUNCTIONCALL2 Pkg  ,
GetPackages  ,
"list< string >(symbol, boolean)"  ,
Symbol  ,
Boolean  ,
PkgModuleFunctions  ,
GetPackages 
 

PkgModuleFunctions::Y2FUNCTIONCALL2 Pkg  ,
GetSelections  ,
"list< string >(symbol, string)"  ,
Symbol  ,
String  ,
PkgModuleFunctions  ,
GetSelections 
 

PkgModuleFunctions::Y2FUNCTIONCALL2 Pkg  ,
TargetInit  ,
"boolean(string, boolean)"  ,
String  ,
Boolean  ,
PkgModuleFunctions  ,
TargetInit 
 

PkgModuleFunctions::Y2FUNCTIONCALL2 Pkg  ,
SourceScan  ,
"list< integer >(string, string)"  ,
String  ,
String  ,
PkgModuleFunctions  ,
SourceScan 
 

PkgModuleFunctions::Y2FUNCTIONCALL2 Pkg  ,
SourceChangeUrl  ,
"boolean(integer, string)"  ,
Integer  ,
String  ,
PkgModuleFunctions  ,
SourceChangeUrl 
 

PkgModuleFunctions::Y2FUNCTIONCALL2 Pkg  ,
SourceSetEnabled  ,
"boolean(integer, boolean)"  ,
Integer  ,
Boolean  ,
PkgModuleFunctions  ,
SourceSetEnabled 
 

PkgModuleFunctions::Y2FUNCTIONCALL2 Pkg  ,
SourceCreate  ,
"integer(string, string)"  ,
String  ,
String  ,
PkgModuleFunctions  ,
SourceCreate 
 

PkgModuleFunctions::Y2FUNCTIONCALL3 Pkg  ,
YouSetUserPassword  ,
"string(string, string, boolean)"  ,
String  ,
String  ,
Boolean  ,
PkgModuleFunctions  ,
YouSetUserPassword 
 

PkgModuleFunctions::Y2FUNCTIONCALL3 Pkg  ,
SelectionContent  ,
"list< string >(string, boolean, string)"  ,
String  ,
Boolean  ,
String  ,
PkgModuleFunctions  ,
SelectionContent 
 

PkgModuleFunctions::Y2FUNCTIONCALL3 Pkg  ,
SourceProvideDir  ,
"string(integer, integer, string)"  ,
Integer  ,
Integer  ,
String  ,
PkgModuleFunctions  ,
SourceProvideDir 
 

PkgModuleFunctions::Y2FUNCTIONCALL3 Pkg  ,
SourceProvideFile  ,
"string(integer, integer, string)"  ,
Integer  ,
Integer  ,
String  ,
PkgModuleFunctions  ,
SourceProvideFile 
 

PkgModuleFunctions::Y2FUNCTIONCALL4 Pkg  ,
FilterPackages  ,
"list< string >(boolean, boolean, boolean, boolean)"  ,
Boolean  ,
Boolean  ,
Boolean  ,
Boolean  ,
PkgModuleFunctions  ,
FilterPackages 
 

PkgModuleFunctions::Y2REFFUNCTIONCALL1 Pkg  ,
YouGetServers  ,
"string(list< any > &)"  ,
List  ,
PkgModuleFunctions  ,
YouGetServers 
 

YCPValue PkgModuleFunctions::YouGetDirectory  ) 
 

Pkg::YouGetDirectory() -> error string

retrieve directory file listing all available patches

Returns:
"" success "url" url not valid "login" login failed "error" other error

YCPString PkgModuleFunctions::YouGetServers YCPReference  strings  ) 
 

Pkg::YouGetServers() -> error string

get urls of patch servers

Parameters:
list(map) list of maps where results are stored. The maps have the following fields set:
"url" URL of server. "name" Descriptive name of server. "directory" Directory file used to get list of patches.

Returns:
"" success "args" bad args "get" error getting file from server "write" error writing file to disk "read" error reading file after download

YCPValue PkgModuleFunctions::YouGetUserPassword  ) 
 

Pkg::YouGetUserPassword()

Get username and password needed for access to server.

Returns:
map "username" success "password" password

YCPMap PkgModuleFunctions::YouPatch const PMYouPatchPtr &  patch  )  [static]
 

YCPValue PkgModuleFunctions::YouProcessPatches  ) 
 

Pkg::YouProcessPatches () -> bool

Download and install patches.

YCPValue PkgModuleFunctions::YouRemovePackages  ) 
 

Pkg::YouRemovePackages () -> bool

remove downloaded packages.

YCPValue PkgModuleFunctions::YouRetrievePatchInfo const YCPBoolean download,
const YCPBoolean sig
 

Pkg::YouRetrievePatchInfo( boolean download_again, boolean check_signatures ) -> error string

retrieve patches

Parameters:
bool true if patches should be downloaded again
bool true if signatures should be checked.
Returns:
"" success "args" bad args "media" media error "sig" signature check failed "abort" user aborted operation "url" url not valid "login" login failed

YCPValue PkgModuleFunctions::YouSecurityUpdatesAvailable  ) 
 

Pkg::YouSecurityUpdatesAvailable () -> bool

check for security updates

YCPValue PkgModuleFunctions::YouSelectPatches  ) 
 

Pkg::YouSelectPatches () -> void

select patches based on types.

YCPValue PkgModuleFunctions::YouSetServer const YCPMap servers  ) 
 

Pkg::YouSetServer()

Set server to be used for getting patches.

Parameters:
map you server map as returned from YouGetServers.
Returns:
"" success "args" wrong arguments "error" other error

YCPValue PkgModuleFunctions::YouSetUserPassword const YCPString user,
const YCPString passwd,
const YCPBoolean p
 

Pkg::YouSetUserPassword()

Set username and password needed for access to server.

Parameters:
string username
string password
boolean true, if username/password should be saved to disk
Returns:
"" success "args" wrong arguments "error" other error

YCPMap PkgModuleFunctions::YouStatus  ) 
 

Pkg::YouStatus() -> map

get map with status information

YCPValue PkgModuleFunctions::YouUpdatesAvailable  ) 
 

Pkg::YouUpdatesAvailable () -> bool

check for updates


Member Data Documentation

CallbackHandler& PkgModuleFunctions::_callbackHandler [private]
 

Handler for YCPCallbacks received or triggered. Needs access to WFM. See CallbackHandler.

PMError PkgModuleFunctions::_last_error [protected]
 

Remembered last error.

int PkgModuleFunctions::_solve_errors [protected]
 

Y2PM PkgModuleFunctions::_y2pm [protected]
 

Access to packagemanager


The documentation for this class was generated from the following files:
Generated on Fri Nov 9 18:15:24 2007 for yast2-core by doxygen 1.3.6