Package pyanaconda :: Module yuminstall :: Class AnacondaYum
[hide private]
[frames] | no frames]

Class AnacondaYum

source code

           object --+        
                    |        
yum.depsolve.Depsolve --+    
                        |    
              yum.YumBase --+
                            |
                           AnacondaYum

Instance Methods [hide private]
 
__init__(self, anaconda)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
setup(self) source code
 
_mountInstallCD(self) source code
 
_mountInstallImage(self) source code
 
configBaseURL(self) source code
 
configBaseRepo(self) source code
 
mediaHandler(self, *args, **kwargs) source code
 
readRepoConfig(self, parser, section)
Parse an INI file section for a repository.
source code
 
setProxy(self, src, dest)
Set the proxy settings from a string in src.proxy If the string includes un/pw use those, otherwise set the un/pw from src.proxyUsername and src.proxyPassword
source code
 
_getAddons(self, baseurl, proxy_url, sslverify)
Check the baseurl or mirrorlist for a repository, see if it has any valid addon repos and if so, return a list of (repo name, repo URL).
source code
 
_getTreeinfo(self, baseurl, proxy_url, sslverify)
Try to get .treeinfo file from baseurl, optionally using proxy_url Saves the file into /tmp/.treeinfo
source code
 
_getReleasever(self)
We need to make sure $releasever gets set up before .repo files are read.
source code
 
doLoggingSetup(self, *args, **kwargs)
Perform logging related setup.
source code
 
doFileLogSetup(self, uid, logfile) source code
 
doConfigSetup(self, fn='/tmp/anaconda-yum.conf', root='/') source code
 
downloadHeader(self, po)
download a header from a package object.
source code
 
_handleFailure(self, package) source code
 
mirrorFailureCB(self, obj, *args, **kwargs) source code
 
urlgrabberFailureCB(self, obj, *args, **kwargs) source code
 
getDownloadPkgs(self) source code
 
setColor(self) source code
 
run(self, instLog, cb, intf) source code
 
_run(self, instLog, cb, intf) source code
 
doMacros(self) source code
 
simpleDBInstalled(self, name, arch=None) source code
 
isPackageInstalled(self, name=None, epoch=None, version=None, release=None, arch=None, po=None) source code
 
isGroupInstalled(self, grp) source code
 
_pkgExists(self, pkg)
Whether or not a given package exists in our universe.
source code
 
_groupHasPackages(self, grp) source code

Inherited from yum.YumBase: __del__, add_enable_repo, bestPackagesFromList, buildTransaction, cleanExpireCache, cleanHeaders, cleanMetadata, cleanPackages, cleanRpmDB, cleanSqlite, cleanUsedHeadersPackages, close, closeRpmDB, costExcludePackages, deselectGroup, disablePlugins, doGenericSetup, doGroupLists, doGroupSetup, doLock, doPackageLists, doPluginSetup, doRepoSetup, doRpmDBSetup, doSackFilelistPopulate, doSackSetup, doUnlock, doUpdateSetup, downgrade, downgradeLocal, downloadPkgs, excludePackages, findDeps, getCAKeyForRepo, getInstalledPackageObject, getKeyForPackage, getKeyForRepo, getPackageObject, getReposFromConfig, getReposFromConfigFile, gpgKeyCheck, groupRemove, groupUnremove, history_redo, history_undo, includePackages, install, installLocal, load_ts, processTransaction, reinstall, reinstallLocal, remove, returnInstalledPackagesByDep, returnPackageByDep, returnPackagesByDep, runTransaction, save_ts, searchGenerator, searchPackageProvides, searchPackageTags, searchPackages, selectGroup, setCacheDir, sigCheckPkg, update, verifyChecksum, verifyHeader, verifyPkg, verifyTransaction, verify_plugins_cb, yumUtilsMsg

Inherited from yum.YumBase (private): _add_not_found, _add_not_found_a, _add_not_found_i, _add_prob_flags, _add_up_txmbr, _askForGPGKeyImport, _at_groupdowngrade, _at_groupinstall, _at_groupremove, _bestPackageFromList, _buildDepTree, _checkMissingObsoleted, _checkSignatures, _checkUpdatedLeftovers, _check_new_update_provides, _cleanFilelist, _cleanFiles, _delRepos, _delSacks, _deleteTs, _doSkipBroken, _doTestTransaction, _doTransaction, _does_this_update, _downloadPackages, _find_obsoletees, _find_obsoletees_direct, _getAnyKeyForRepo, _getConfig, _getDepsToRemove, _getGroups, _getHistory, _getKeyImportMessage, _getPackagesToRemove, _getPackagesToRemoveAllArch, _getRepos, _getRpmDB, _getSacks, _getTags, _getUpdates, _has_needed_revdeps, _is_local_exclude, _limit_installonly_pkgs, _lock, _minus_deselect, _nevra_kwarg_parse, _newer_update_in_trans, _pkg2obspkg, _printDepTree, _printTransaction, _removePoFromTransaction, _remove_old_deps, _retrievePublicKey, _rpmdb_warn_checks, _run_rpm_check, _setGroups, _skipFromTransaction, _skipPackagesWithProblems, _store_config_in_history, _test_loop, _transactionDataFactory, _unlock

Inherited from yum.depsolve.Depsolve: allowedMultipleInstalls, cprof_resolveDeps, doTsSetup, initActionTs, populateTs, prof_resolveDeps, resolveDeps, whatProvides

Inherited from yum.depsolve.Depsolve (private): _checkConflicts, _checkFileRequires, _checkInstall, _checkRemove, _compare_providers, _delTsInfo, _dscb_procConflict, _dscb_procReq, _err_missing_requires, _getActionTs, _getTs, _getTsInfo, _isPackageInstalled, _prco_req2req, _processConflict, _processReq, _quickWhatProvides, _requiringFromInstalled, _requiringFromTransaction, _resolveRequires, _setTsInfo, _undoDepInstalls

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from yum.YumBase (private): _ui_nevra_dict

Inherited from yum.depsolve.Depsolve (private): _prco_req_nfv2req, _sort_req_key

Class Variables [hide private]

Inherited from yum.YumBase: comps, conf, history, pkgSack, pkgtags, repos, rpmdb, ts, tsInfo, up

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, anaconda)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

readRepoConfig(self, parser, section)

source code 

Parse an INI file section for a repository.

Parameters:
  • parser - ConfParser or similar to read INI file values from.
  • section - INI file section to read.
Returns:
YumRepository instance.
Overrides: yum.YumBase.readRepoConfig

setProxy(self, src, dest)

source code 

Set the proxy settings from a string in src.proxy If the string includes un/pw use those, otherwise set the un/pw from src.proxyUsername and src.proxyPassword

dest has dest.proxy set to the host and port (no un/pw) dest.proxy_username and dest.proxy_password are set if present in src

_getReleasever(self)

source code 

We need to make sure $releasever gets set up before .repo files are read. Since there's no redhat-release package in /mnt/sysimage (and won't be for quite a while), we need to do our own substutition.

doLoggingSetup(self, *args, **kwargs)

source code 

Perform logging related setup.

Parameters:
  • debuglevel - Debug logging level to use.
  • errorlevel - Error logging level to use.
Overrides: yum.YumBase.doLoggingSetup
(inherited documentation)

doFileLogSetup(self, uid, logfile)

source code 
Overrides: yum.YumBase.doFileLogSetup

doConfigSetup(self, fn='/tmp/anaconda-yum.conf', root='/')

source code 
Overrides: yum.YumBase.doConfigSetup

downloadHeader(self, po)

source code 

download a header from a package object. output based on callback, raise yum.Errors.YumBaseError on problems

Overrides: yum.YumBase.downloadHeader
(inherited documentation)

isPackageInstalled(self, name=None, epoch=None, version=None, release=None, arch=None, po=None)

source code 
Overrides: yum.depsolve.Depsolve.isPackageInstalled