Package conary :: Package local :: Module update
[hide private]
[frames] | no frames]

Module update

source code

Handles all updates to the file system; files should never get changed on the filesystem except by this module!

Classes [hide private]
  UpdateFlags
merge: Flag constant value.
  LastRestored
  FilesystemJob
Represents a set of actions which need to be applied to the filesystem.
  _InfoFile
Simple object for bootstrapping editing /etc/passwd and /etc/group This object is only used before the user-info and group-info tag handlers are installed, and before any shadowing information has been added to the filesystem.
  _KeyVal
  HandlerInfo
  TagCommand
Functions [hide private]
 
_localChanges(repos, changeSet, curTrove, srcTrove, newVersion, root, flags, withFileContents=True, forceSha1=False, ignoreTransient=False, ignoreAutoSource=False, crossRepositoryDeltas=True, allowMissingFiles=False, callback=UpdateCallback())
Populates a change set against the files in the filesystem and builds a trove object which describes the files installed.
source code
 
buildLocalChanges(repos, pkgList, root='.', withFileContents=True, forceSha1=False, ignoreTransient=False, ignoreAutoSource=False, updateContainers=False, crossRepositoryDeltas=True, allowMissingFiles=False, callback=UpdateCallback())
Builds a change set against a set of files currently installed and builds a trove object which describes the files installed.
source code
 
shlibAction(root, shlibList, tagScript=None, logger=<module 'conary.lib.log' from '/export/home/synccvs/docs/conar...) source code
 
_checkHandler(tag, root) source code
 
userAction(root, userFileList) source code
 
groupAction(root, groupFileList) source code
 
silentlyReplace(newF, oldF) source code
 
runTroveScript(job, script, tagScript, tmpDir, root, callback, isPre=False, scriptId='unknown script', oldCompatClass=None, newCompatClass=None) source code
Variables [hide private]
  ROLLBACK_PHASE_REPOS = 1
  ROLLBACK_PHASE_LOCAL = 2
Function Details [hide private]

_localChanges(repos, changeSet, curTrove, srcTrove, newVersion, root, flags, withFileContents=True, forceSha1=False, ignoreTransient=False, ignoreAutoSource=False, crossRepositoryDeltas=True, allowMissingFiles=False, callback=UpdateCallback())

source code 
Populates a change set against the files in the filesystem and builds a trove object which describes the files installed. The return is a tuple with a boolean saying if anything changed and a trove reflecting what's in the filesystem; the changeSet is updated as a side effect.
Parameters:
  • repos (repository.Repository) - Repository this directory is against.
  • changeSet (changeset.ChangeSet) - Changeset to update with information for this trove
  • curTrove (trove.Trove) - Trove which is installed
  • srcTrove (trove.Trove) - Trove to generate the change set against
  • newVersion (versions.NewVersion) - version to use for the newly created trove
  • root (str) - root directory the files are in. may be empty "." or a directory for source troves
  • flags (UpdateFlags) - boolean flags for this operation
  • forceSha1 (bool) - disallows the use of inode information to avoid checking the sha1 of the file if the inode information matches exactly.
  • ignoreTransient (bool) - ignore transient files
  • ignoreAutoSource (bool) - ignore automatically added source files

buildLocalChanges(repos, pkgList, root='.', withFileContents=True, forceSha1=False, ignoreTransient=False, ignoreAutoSource=False, updateContainers=False, crossRepositoryDeltas=True, allowMissingFiles=False, callback=UpdateCallback())

source code 
Builds a change set against a set of files currently installed and builds a trove object which describes the files installed. The return is a changeset and a list of tuples, each with a boolean saying if anything changed for a trove reflecting what's in the filesystem for that trove.
Parameters:
  • repos (repository.Repository) - Repository this directory is against.
  • pkgList - Specifies which pacakage to work on, and is a list of (curTrove, srcTrove, newVersion, flags) tuples as defined in the parameter list for _localChanges()
  • root (str) - root directory the files are in. may be empty for sources, in which case files are assumed to be in the current directory)
  • forceSha1 (bool) - disallows the use of inode information to avoid checking the sha1 of the file if the inode information matches exactly.
  • ignoreTransient (bool) - ignore transient files
  • ignoreAutoSource (bool) - ignore automatically added source files
  • updateContainers - Container troves are updated to point to the new versions of troves which have had files changed.