| Home | Trees | Indices | Help |
|
|---|
|
|
EntropyRepository implements SQLite3 based storage. In a Model-View based pattern, it can be considered the "model". Actually it's the only one available but more model backends will be supported in future (which will inherit this class directly).
Every Entropy repository storage interface MUST inherit from this base class.
To Do: refactoring and generalization needed
| Nested Classes | |
| Schema | |
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| bool |
|
||
|
|||
| list |
|
||
| set |
|
||
| list |
|
||
| list |
|
||
|
|||
|
|||
| set |
|
||
| tuple |
|
||
|
|||
|
|||
|
|||
| int |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| int |
|
||
|
|||
|
|||
|
|||
| set |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| int |
|
||
| int |
|
||
| string or None |
|
||
| string |
|
||
| int |
|
||
| int |
|
||
| set |
|
||
| int |
|
||
| tuple |
|
||
| tuple |
|
||
| tuple |
|
||
|
|||
| tuple |
|
||
|
|||
| dict |
|
||
|
|||
| string |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| bool |
|
||
|
|||
|
|||
| dict |
|
||
| set |
|
||
| set |
|
||
| string or None |
|
||
| string or None |
|
||
| string or None |
|
||
| string or None |
|
||
| string or None |
|
||
| string or None |
|
||
| int |
|
||
| list |
|
||
| int or None |
|
||
| int |
|
||
| string or None |
|
||
| tuple |
|
||
| string or None |
|
||
|
|||
| string or None |
|
||
| tuple |
|
||
| string or None |
|
||
| int or None |
|
||
| string or None |
|
||
| int or None |
|
||
| set |
|
||
| set |
|
||
| string or None |
|
||
| set |
|
||
| list or set |
|
||
| dict |
|
||
| set |
|
||
|
|||
|
|||
|
|||
| set |
|
||
| set |
|
||
| set |
|
||
|
|||
|
|||
| list or set |
|
||
| set |
|
||
| set |
|
||
| string |
|
||
| string |
|
||
| dict or set |
|
||
| list or set |
|
||
| dict or list or set |
|
||
| string or None |
|
||
| string or None |
|
||
| string or None |
|
||
| string or None |
|
||
| set |
|
||
| string or None |
|
||
| dict |
|
||
| dict |
|
||
| set |
|
||
| string (raw format) or None |
|
||
| string or None |
|
||
|
|||
| list or set |
|
||
| list |
|
||
| int |
|
||
| bool |
|
||
| bool |
|
||
| bool |
|
||
| bool |
|
||
| bool or set |
|
||
| list or set |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
| bool |
|
||
| bool |
|
||
| bool |
|
||
| bool |
|
||
|
|||
| int |
|
||
| bool |
|
||
| bool |
|
||
| bool |
|
||
| set |
|
||
| set or list |
|
||
| set or list |
|
||
| set or list |
|
||
| set or list |
|
||
| set |
|
||
| set |
|
||
| int or set |
|
||
| set |
|
||
| set |
|
||
| set |
|
||
| set or list |
|
||
| list or set |
|
||
| list |
|
||
| list or set |
|
||
| list |
|
||
| list or set |
|
||
| tuple |
|
||
| tuple |
|
||
| list |
|
||
| set |
|
||
| list |
|
||
| list or set |
|
||
| list |
|
||
| set |
|
||
| list or set |
|
||
| int or list or set |
|
||
| list |
|
||
| list |
|
||
|
|||
| string |
|
||
|
|||
| tuple |
|
||
|
|||
| int |
|
||
|
|||
| int |
|
||
|
|||
| list |
|
||
| string |
|
||
|
|||
| string or None |
|
||
|
|||
|
|||
| buffer |
|
||
| dict |
|
||
|
|||
|
|||
| set |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| tuple |
|
||
| tuple or set |
|
||
| Class Variables | |
SETTING_KEYS =
|
|
| Method Details |
EntropyRepository constructor.
|
Change low-level, storage engine based cache size.
|
Change default low-level, storage engine based cache size.
|
Close repository storage communication. Note: once issues this, you won't be able to use such instance anymore. |
Commit actual changes and make them permanently stored.
|
Server-side function used to determine whether repository database has been modified.
|
WARNING: it will erase your database. This method (re)initialize the repository, dropping all its content. |
This method should be considered internal and not suited for general audience. Given a raw package name/slot updates list, it returns the action that should be really taken because not applied.
|
Method not suited for general purpose usage. Executes package name/slot update actions passed.
|
Method not suited for general purpose usage. Executes package name move action passed.
|
Method not suited for general purpose usage. Executes package slot move action passed.
|
Erase dead Source Package Manager db entries.
To Do: make more Portage independent (create proper entropy.spm methods for dealing with this) |
Update or add a package to repository automatically handling
its scope and thus removal of previous versions if requested by
the given metadata.
pkg_data is a dict() containing all the information bound to
a package:
{
'signatures':
{
'sha256': u'zzz',
'sha1': u'zzz',
'sha512': u'zzz'
},
'slot': u'0',
'datecreation': u'1247681752.93',
'description': u'Standard (de)compression library',
'useflags': set([u'kernel_linux']),
'eclasses': set([u'multilib']),
'config_protect_mask': u'string string', 'etpapi': 3,
'mirrorlinks': [],
'cxxflags': u'-Os -march=x86-64 -pipe',
'injected': False,
'licensedata': {u'ZLIB': u"lictext"},
'dependencies': {},
'chost': u'x86_64-pc-linux-gnu',
'config_protect': u'string string',
'download': u'packages/amd64/4/sys-libs:zlib-1.2.3-r1.tbz2',
'conflicts': set([]),
'digest': u'fd54248ae060c287b1ec939de3e55332',
'size': u'136302',
'category': u'sys-libs',
'license': u'ZLIB',
'needed_paths': {},
'sources': set(),
'name': u'zlib',
'versiontag': u'',
'changelog': u"text",
'provide': set([]),
'trigger': u'text',
'counter': 22331,
'messages': [],
'branch': u'4',
'content': {},
'needed': [(u'libc.so.6', 2)],
'version': u'1.2.3-r1',
'keywords': set(),
'cflags': u'-Os -march=x86-64 -pipe',
'disksize': 932206, 'spm_phases': None,
'homepage': u'http://www.zlib.net/',
'systempackage': True,
'revision': 0
}
@param pkg_data: Entropy package metadata dict
@type pkg_data: dict
@keyword forcedRevision: force a specific package revision
@type forcedRevision: int
@keyword formattedContent: tells whether content metadata is already
formatted for insertion
@type formattedContent: bool
@return: tuple composed by
- idpackage: unique Entropy Repository package identifier
- revision: final package revision selected
- pkg_data: new Entropy package metadata dict
@rtype: tuple
|
Return a list of packages that would be removed given name, category, slot and injection status.
|
Add package to this Entropy repository. The main difference between handlePackage and this is that from here, no packages are going to be removed, in any case. For more information about pkg_data layout, please see handlePackage().
|
Remove package from this Entropy repository using it's identifier (idpackage).
|
Remove source packages mirror entries from database for the given mirror name. This is a representation of Portage's "thirdpartymirrors".
|
Add source package mirror entry to database. This is a representation of Portage's "thirdpartymirrors".
|
Add package category string to repository. Return its identifier (idcategory).
|
Add a single, generic CONFIG_PROTECT (not defined as _MASK/whatever here) path. Return its identifier (idprotect).
|
Add source code package download path to repository. Return its identifier (idsource).
|
Add dependency string to repository. Return its identifier (iddependency).
|
Add package SPM keyword string to repository. Return its identifier (idkeyword).
|
Add package USE flag string to repository. Return its identifier (iduseflag).
|
Add package SPM Eclass string to repository. Return its identifier (ideclass).
|
Add package libraries' ELF object NEEDED string to repository. Return its identifier (idneeded).
|
Add package license name string to repository. Return its identifier (idlicense).
|
Add package Compiler flags used to repository. Return its identifier (idflags).
|
Mark a package as system package, which means that entropy.client will deny its removal.
|
Mark package as injected, injection is usually set for packages manually added to repository. Injected packages are not removed automatically even when featuring conflicting scope with other that are being added. If a package is injected, it means that maintainers have to handle it manually.
|
Update the creation date for package. Creation date is stored in string based unix time format.
|
Set package file md5sum for package. This information is used by entropy.client when downloading packages.
|
Set package file extra hashes (sha1, sha256, sha512) for package.
|
Set download URL prefix for package.
|
Set category name for package.
|
Set description for given category name.
|
Set name for package.
|
Set dependency string for iddependency (dependency identifier).
|
Set atom string for package. "Atom" is the full, unique name of a package.
|
Set slot string for package. Please refer to Portage SLOT documentation for more info.
|
Remove license text for given license name identifier.
|
Remove all the dependencies of package.
|
Insert dependencies for package. "depdata" is a dict() with dependency strings as keys and dependency type as values.
|
Insert manually added dependencies to dep. list of package.
|
Remove content metadata for package.
|
Insert content metadata for package. "content" can either be a dict() or a list of triples (tuples of length 3, (idpackage, path, type,)).
|
Insert paths where given ELF obj (library) name can be located. "library" is an ELF object name.
|
Insert configuration files automerge information for package. "automerge_data" contains configuration files paths and their belonging md5 hash. This features allows entropy.client to "auto-merge" or "auto-remove" configuration files never touched by user.
|
Remove configuration files automerge information for package. "automerge_data" contains configuration files paths and their belonging md5 hash. This features allows entropy.client to "auto-merge" or "auto-remove" configuration files never touched by user.
|
Remove extra package file hashes (SHA1, SHA256, SHA512) for package. Entropy package files metadata contains up to 4 hashes: md5, sha1, sha256, sha512 While md5 is here for historical reasons (being the first supported) sha1, sha256, sha512 have been added recently and located into a separate database table called "packagesignatures". Such hashes can be not available for older packages, so don't be scared, aliens are not to blame.
|
Remove Source Package Manager phases for package. Entropy can call several Source Package Manager (the PM which Entropy relies on) package installation/removal phases. Such phase names are listed here.
|
Insert package changelog for package (in this case using category + name as key).
|
Remove ChangeLog for package (in this case using category + name as key)
|
insert license data (license names and text) into repository.
|
Insert CONFIG_PROTECT (configuration files protection) entry identifier for package. This entry is usually a space separated string of directory and files which are used to handle user-protected configuration files or directories, those that are going to be stashed in separate paths waiting for user merge decisions.
|
Insert list of "mirror name" and "mirror list" into repository. The term "mirror" in this case references to Source Package Manager package download mirrors. Argument format is like this for historical reasons and may change in future.
To Do: change argument format |
Insert keywords for package. Keywords are strings contained in package metadata stating what architectures or subarchitectures are supported by package. It is historically used also for masking packages (making them not available).
|
Insert Source Package Manager USE (components build) flags for package.
|
Insert package file extra hashes (sha1, sha256, sha512) for package.
|
Insert Source Package Manager phases for package. Entropy can call several Source Package Manager (the PM which Entropy relies on) package installation/removal phases. Such phase names are listed here.
|
Insert source code package download URLs for idpackage.
|
Insert dependency conflicts for package.
|
Insert user messages for package.
|
Insert PROVIDE metadata for idpackage. This has been added for supporting Portage Source Package Manager old-style meta-packages support. Packages can provide extra atoms, you can see it like aliases, where these can be given by multiple packages. This allowed to make available multiple applications providing the same functionality which depending packages can reference, without forcefully being bound to a single package.
|
Insert package libraries' ELF object NEEDED string for package. Return its identifier (idneeded).
|
Insert Source Package Manager used build specification file classes. The term "eclasses" is derived from Portage.
|
Insert on-disk size (bytes) for package.
|
Insert built-in trigger script for package, containing pre-install, post-install, pre-remove, post-remove hooks. This feature should be considered DEPRECATED, and kept for convenience. Please use Source Package Manager features if possible.
|
Insert Entropy Client "branch migration" scripts hash metadata. When upgrading from a branch to another, it can happen that repositories ship with scripts aiming to ease the upgrade. This method stores in the repository information on such scripts.
|
Update "post-upgrade on new branch" script file md5 hash. When upgrading from a branch to another, it can happen that repositories ship with scripts aiming to ease the upgrade. This method stores in the repository information on such scripts.
|
Bind Source Package Manager package identifier ("COUNTER" metadata for Portage) to Entropy package. If uid <= -2, a new negative UID will be allocated and returned. Negative UIDs are considered auto-allocated by Entropy. This is mainly used for binary packages not belonging to any SPM packages which are just "injected" inside the repository.
|
Insert Source Package Manager unique package identifier and bind it to Entropy package identifier given (idpackage). This method is used by Entropy Client and differs from "bindSpmPackageUid" because any other colliding idpackage<->uid binding is overwritten by design.
|
Mark given Source Package Manager unique package identifier as "trashed". This is a trick to allow Entropy Server to support multiple repositories and parallel handling of them without make it messing with removed packages from the underlying system.
|
Update Source Package Manager unique package identifier for given Entropy package identifier (idpackage). This method *only* updates a currently available binding setting a new "spm_package_uid"
|
Return content metadata difference between two packages.
|
Obtain auto-generated available negative Source Package Manager package identifier.
|
Get Entropy repository API.
|
Return dependency string for given dependency identifier.
|
Get category name from category identifier.
|
Obtain repository package identifier from its atom string.
|
Obtain repository package identifier from its relative download path string.
|
Obtain repository package identifiers for packages owning the provided path string (file).
|
Obtain category identifier from category name.
|
Get package version information for provided package identifier.
|
Get a restricted (optimized) set of package metadata for provided package identifier.
|
Get a restricted (optimized) set of package metadata for provided identifier that can be used to determine the scope of package.
|
Get a set of package metadata for provided identifier that can be
used to determine the scope of package.
@param idpackage: package indentifier
@type idpackage: int
@return: tuple of length 9 composed by
(atom, category name, name, version,
slot, tag, revision, branch, api,)
belonging to idpackage
@rtype: tuple
|
Get a set of basic package metadata for provided package identifier.
|
Get a set of basic package metadata for provided package identifier.
This method is optimized to work with Entropy Client installation
triggers returning only what is strictly needed.
@param idpackage: package indentifier
@type idpackage: int
@keyword content: if True, grabs the "content" metadata too, othewise
such dict key value will be shown as empty set().
@type content: bool
@return: dictionary containing package metadata
data = {
'atom': atom,
'category': category,
'name': name,
'version': version,
'versiontag': versiontag,
'revision': revision,
'branch': branch,
'chost': chost,
'cflags': cflags,
'cxxflags': cxxflags,
'etpapi': etpapi,
'trigger': self.retrieveTrigger(idpackage),
'eclasses': self.retrieveEclasses(idpackage),
'content': pkg_content,
'spm_phases': self.retrieveSpmPhases(idpackage),
}
@rtype: dict
|
Reconstruct all the package metadata belonging to provided package identifier into a dict object.
|
Clear on-disk repository cache.
|
This method should be considered internal and not suited for general audience. Return digest (md5 hash) bound to repository package names/slots updates.
|
This method should be considered internal and not suited for general
audience.
List all the available "treeupdates" (package names/slots changes
directives) actions.
@keyword no_ids_repos: if True, it will just return a 3-length tuple
list containing [(command, branch, unix_time,), ...]
@type no_ids_repos: bool
@return: list of tuples
@rtype: list
|
This method should be considered internal and not suited for general
audience.
Return all the available "treeupdates (package names/slots changes
directives) actions for provided repository.
@param repository: repository identifier
@type repository: string
@keyword forbranch: filter for specific Entropy branch, provide
alternative branch string
@type forbranch: string
@return: list of raw-string commands to run
@rtype: list
|
This method should be considered internal and not suited for general audience. This method rewrites "treeupdates" metadata in repository.
|
This method should be considered internal and not suited for general audience. This method removes "treeupdates" metadata in repository.
|
This method should be considered internal and not suited for general audience. This method insert "treeupdates" metadata in repository.
|
This method should be considered internal and not suited for general audience. Set "treeupdates" checksum (digest) for provided repository.
|
This method should be considered internal and not suited for general audience. Add "treeupdates" actions for repository and branch provided.
|
This method should be considered internal and not suited for general audience. Return whether provided "treeupdates" action in repository with provided branch exists.
|
Insert Package sets metadata into repository.
|
Return Package sets metadata stored in repository.
|
Return dependencies belonging to given package set name. This method does not check if the given package set name is available and returns an empty list (set) in these cases.
|
Return a list of package identifiers that are part of the base system (thus, marked as system packages).
|
Return "atom" metadatum for given package identifier.
|
Return "branch" metadatum for given package identifier.
|
Return "trigger" script content for given package identifier.
|
Return "download URL" metadatum for given package identifier.
|
Return "description" metadatum for given package identifier.
|
Return "homepage" metadatum for given package identifier.
|
Return Source Package Manager unique identifier bound to Entropy package identifier.
|
Return "messages" metadatum for given package identifier.
|
Return "size" metadatum for given package identifier. "size" refers to Entropy package file size in bytes.
|
Return "on disk size" metadatum for given package identifier. "on disk size" refers to unpacked Entropy package file size in bytes, which is in other words, the amount of space required on live system to have it installed (simplified explanation).
|
Return "digest" metadatum for given package identifier. "digest" refers to Entropy package file md5 checksum bound to given package identifier.
|
Return package file extra hashes (sha1, sha256, sha512) for given package identifier.
|
Return "name" metadatum for given package identifier. Attention: package name != atom, the former is just a subset of the latter.
|
Return a tuple composed by package key and slot for given package identifier.
|
Return package key and package slot string (aggregated form through ":", for eg.: app-foo/foo:2). This method has been implemented for performance reasons.
|
Return package key, slot and tag tuple for given package identifier.
|
Return package version for given package identifier.
|
Return package Entropy-revision for given package identifier.
|
Return creation date for given package identifier. Creation date returned is a string representation of UNIX time format.
|
Return Entropy API in use when given package identifier was added.
|
Return "USE flags" metadatum for given package identifier.
|
Return "eclass" metadatum for given package identifier.
|
Return "Source Package Manager install phases" for given package identifier.
|
Return (raw format) "NEEDED" ELF metadata for libraries contained in given package.
|
Return "NEEDED" elf metadata for libraries contained in given package.
|
Return library linker paths available at the time package entered repository.
|
Return registered library paths for given library name needed_library_name and ELF class.
|
Return raw list of packages containing library with given ELF class.
For example:
[(123, u'libfoo.so.1.2.3', 2,), ...]
This is useful to determine which package provides a given library for
each ELF class available.
@return: list of tuples of length 3 (see description)
@rtype: list
|
Clear package and library names binding metadata. See retrieveNeededLibraryIdpackages() for more information. |
Inject given package <-> library name <-> ELF class map into repository.
|
Return list of conflicting dependencies for given package identifier.
|
Return list of dependencies/atoms are provided by the given package identifier (see Portage documentation about old-style PROVIDEs).
|
Return list of dependencies, including conflicts for given package identifier.
|
Return list of post-merge package dependencies for given package identifier. Note: this function is just a wrapper of retrieveDependencies() providing deptype (dependency type) = post-dependencies.
|
Return manually added dependencies for given package identifier. Note: this function is just a wrapper of retrieveDependencies() providing deptype (dependency type) = manual-dependencies.
|
Return dependencies for given package identifier.
|
Return list of dependency identifiers for given package identifier.
|
Return package SPM keyword list for given package identifier.
|
Return CONFIG_PROTECT (configuration file protection) string (containing a list of space reparated paths) metadata for given package identifier.
|
Return CONFIG_PROTECT_MASK (mask for configuration file protection) string (containing a list of space reparated paths) metadata for given package identifier.
|
Return source package URLs for given package identifier. "source" as in source code.
|
Return previously merged protected configuration files list and their md5 hashes for given package identifier. This is part of the "automerge" feature which uses file md5 checksum to determine if a protected configuration file can be merged auto- matically.
|
Return files contained in given package.
|
Return Source Package Manager ChangeLog for given package identifier.
|
Return Source Package Manager ChangeLog content for given package category and name.
|
Return "slot" metadatum for given package identifier.
|
Return "tag" metadatum for given package identifier. Tagging packages allows, for example, to support multiple different, colliding atoms in the same repository and still being able to exactly reference them. It's actually used to provide versions of external kernel modules for different kernels.
|
Return available mirror URls for given mirror name.
|
Return category name for given package identifier.
|
Return description text for given category.
|
Return license metadata for given package identifier.
|
Return license names available for given package identifier.
|
Return license text for given license name.
|
Return "license" metadatum for given package identifier.
|
Return Compiler flags during building of package.
(CHOST, CXXFLAGS, LDFLAGS)
@param idpackage: package indentifier
@type idpackage: int
@return: tuple of length 3 composed by (CHOST, CFLAGS, CXXFLAGS)
@rtype: tuple
|
Return reverse (or inverse) dependencies for given package.
|
Return packages (through their identifiers) not referenced by any other as dependency (unused packages).
|
Return whether given atom is available in repository.
|
Return whether list of package identifiers are available. They must be all available to return True
|
Return whether given package identifier is available in repository.
|
Return whether given category is available in repository.
|
Return whether given CONFIG_PROTECT* entry is available in repository.
|
Return whether given file path is available in repository (owned by one or more packages).
|
Resolve NEEDED ELF entry (a library name) to idpackages owning given needed (stressing, needed = library name)
|
Return whether given source package URL is available in repository. Returns source package URL identifier (idsource).
|
Return whether given dependency string is available in repository. Returns dependency identifier (iddependency).
|
Return whether keyword string is available in repository. Returns keyword identifier (idkeyword)
|
Return whether USE flag name is available in repository. Returns USE flag identifier (idflag).
|
Return whether eclass name is available in repository. Returns Eclass identifier (idclass)
|
Return whether NEEDED ELF entry (library name) is available in repository. Returns NEEDED entry identifier
|
Return whether Source Package Manager package identifier is available in repository.
|
Return whether Source Package Manager package identifier has been trashed. One is trashed when it gets removed from a repository while still sitting there in place on live system. This is a trick to allow multiple-repositories management to work fine when shitting around.
|
Return whether license name is available in License database, which is the one containing actual license texts.
|
Return whether given license (through its name) has been accepted by user.
|
Mark license name as accepted by user. Only and only if user is allowed to accept them:
To Do:
|
Return whether license metdatatum (NOT license name) is available in repository.
|
Return whether package is part of core system (though, a system package).
|
Return whether package has been injected into repository (means that will be never ever removed due to colliding scope when other packages will be added).
|
Return whether given Compiler FLAGS are available in repository.
|
Search packages which given file path belongs to.
|
Search packages which their Source Package Manager counterpar are using given eclass.
|
Search packages which "tag" metadatum matches the given one.
|
Search packages using given license (mylicense).
To Do: check if is_valid_string is really required |
Search packages with given slot string.
|
Search package with given key and slot
|
Search packages that need given NEEDED ELF entry (library name).
|
Search dependency name in repository. Returns dependency identifier (iddependency) or dependency strings (if strings argument is True).
|
Search package identifiers owning dependency given (in form of dependency identifier).
|
Search package sets in repository using given search keyword.
|
Search similar packages (basing on package string given by mystring argument) using SOUNDEX algorithm (ahhh Google...).
|
Search packages using given package name "keyword" argument.
|
Search in old-style Portage PROVIDE metadata. WARNING: this method is deprecated and will be removed someday.
|
Search packages using given description string as keyword.
|
Search packages by package name.
|
Search packages by category name.
|
Search packages matching given name and category strings.
|
Return whether given package scope is available. Also check if package found is masked and return masking reason identifier.
|
Returns whether branch migration metadata given by the provided key (repository, from_branch, to_branch,) is available.
|
List all packages in repository.
|
List all the "injected" package download URLs in repository.
|
List all Source Package Manager unique package identifiers bindings with packages in repository.
|
List all package identifiers available in repository.
|
List all dependencies available in repository.
|
List package identifiers available in given category identifier.
|
List all package download URLs stored in repository.
|
List all file paths owned by packaged stored in repository.
|
List all categories available in repository.
|
List CONFIG_PROTECT* entries (configuration file/directories protection).
|
Switch branch string in repository to new value.
|
Return stored Repository setting. For currently supported setting_name values look at EntropyRepository.SETTING_KEYS.
|
Validates Entropy repository by doing basic integrity checks.
|
Return differences between in-repository package identifiers and list provided.
|
Enforce given branch string to all currently available packages.
|
Align packages contained in foreign repository "dbconn" and this instance.
|
Import SQLite3 dump file to this database.
To Do: remove /usr/bin/sqlite3 dependency |
Export running SQLite3 database to file.
To Do: when Python 2.6, look ad Connection.iterdump and replace this :) |
List all available tables in this repository database.
|
Get Repository metadata checksum, useful for integrity verification. Note: result is cached in EntropyRepository.live_cache (dict).
|
Note: this is used by installed packages repository (also known as client db). Add package identifier to the "installed packages table", which contains repository identifier from where package has been installed and its install request source (user, pulled in dependency, etc).
|
Note: this is used by installed packages repository (also known as client db). Return repository identifier stored inside the "installed packages table".
|
Note: this is used by installed packages repository (also known as client db). Remove installed package metadata from "installed packages table". Note: this just removes extra metadata information such as repository identifier from where package has been installed and its install request source (user, pulled in dependency, etc). This method DOES NOT remove package from repository (see removePackage() instead).
|
Xpak metadata is Source Package Manager package metadata. This method stores such metadata inside repository.
|
Xpak metadata is Source Package Manager package metadata. This method returns such stored metadata inside repository.
|
This method returns branch migration metadata stored in Entropy Client database (installed packages database). It is used to determine whether to run per-repository branch migration scripts.
|
Drop all "content" metadata from repository, usually a memory hog. Content metadata contains files and directories owned by packages. |
List all the available repository metadata index names.
|
Drop "content" metadata index.
|
Regenerate Source Package Manager package identifiers table. This method will use the Source Package Manger interface.
|
This method should be considered internal and not suited for general audience. Clear "treeupdates" metadata for given repository identifier.
|
This method should be considered internal and not suited for general audience. Reset "treeupdates" digest metadata. |
Regenerate reverse (or inverse) dependencies metadata.
|
Note: this is not intended for general audience. Regenerate ELF object linker paths table.
|
Note: this is not intended for general audience. Move "branch" metadata contained in Source Package Manager package identifiers binding metadata to new value given by "from_branch" argument.
|
Return whether given package identifier is available to user or not, reading package masking metadata stored in SystemSettings.
|
Match given atom (or dependency) in repository and return its package identifer and execution status.
To Do: improve documentation here |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Sep 4 11:50:11 2009 | http://epydoc.sourceforge.net |