Home | Trees | Indices | Help |
|
---|
|
Instance Methods | |||
|
|||
bool |
|
||
|
|||
list |
|
||
|
|||
|
|||
bool |
|
||
bool |
|
||
|
|||
entropy.db.EntropyRepository |
|
||
list |
|
||
string |
|
||
entropy.client.interfaces.db.GenericRepository |
|
||
entropy.db.skel.EntropyRepositoryBase |
|
||
entropy.client.interfaces.db.GenericRepository |
|
||
bool |
|
||
|
|||
|
|||
string |
|
||
|
|||
|
|||
list |
|
Class Methods | |||
class object |
|
Method Details |
Add a package repository (through its package file) to Entropy Client. This is temporary and the lifecycle of it being available within Entropy Client is limited to this process lifetime. Any package file, either smart package or simple or webinstall must pass from here in order to get inserted, properly validated and made available.
|
Add repository to Entropy Client configuration and data structures. NOTE: this method is NOT thread-safe. TODO: document metadata structure
|
Backup given repository into given backup directory.
|
Clean Entropy Client downloaded packages older than the setting specified by "packages-autoprune-days" in /etc/entropy/client.conf. If setting is not set or invalid, this method will do nothing. Otherwise, files older than given settings (representing time delta in days) will be removed.
|
Close the Installed Packages repository. It will be reopened on demand. |
Close all the previously opened (through open_repository()) repository instances. If mask_clear is True, package masking information will be cleared as well (by calling SystemSettings.clear()).
|
Disable given repository in Entropy Client configuration. If repository_id doesn't exist, nothing will change. But please, make sure this won't happen. NOTE: this method is NOT thread-safe.
|
Enable given repository in Entropy Client configuration. If repository_id doesn't exist, nothing will change. But please, make sure this won't happen. NOTE: this method is NOT thread-safe.
|
Filter out package repositories from a given list.
|
Given a repository identifier, returns the repository class associated with it. NOTE: stub. When more EntropyRepositoryBase classes will be available, this method will start making more sense. WARNING: do not use this to open a repository. Please use Client.open_repository() instead. If repository_id is None, a generic repository class is returned.
|
Return Entropy Client installed packages repository.
|
List available backups for the installed packages repository.
|
Return the Entropy Client installed packages repository path.
|
Open a Generic Entropy Repository interface, using entropy.client.interfaces.db.GenericRepository class.
|
If you just want open a read-only repository, use this method.
|
Open a temporary (using mkstemp()) Entropy Repository. Indexing and Caching are disabled by default.
|
Remove repository from Entropy Client configuration and data structures, if available. NOTE: this method is NOT thread-safe.
|
Return a list of enabled (and valid) repository identifiers, excluding installed packages repository. You can use the identifiers in this list to open EntropyRepository instances using Client.open_repository() NOTE: this method directly returns a reference to the internal enabled repository list object. NOTE: the returned list is built based on SystemSettings repository metadata but might differ because extra checks are done at runtime. So, if you want to iterate over valid repositories, use this method.
|
Return a SHA1 of the checksums and mtimes of all the repositories. This method can be used for cache validation/lookup purposes.
|
Restore given repository.
|
Change repository priority, move to given index "new_position_idx". The reference ordered list is at SystemSettings()['repositories']['order'] NOTE: this method is NOT thread-safe.
|
Return a list of repositories that are currently unavailable on the local system. This method does a set difference from repositories() and SystemSettings metadata.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Feb 16 00:00:19 2019 | http://epydoc.sourceforge.net |