Package entropy :: Package client :: Package interfaces :: Module repository :: Class Repository

Class Repository

source code


Entropy Client Repositories management interface.

Instance Methods
 
__init__(self, entropy_client, repo_identifiers=None, force=False, fetch_security=True, gpg=True)
Entropy Client Repositories management interface constructor.
source code
int
sync(self)
Start repository synchronization.
source code

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

Static Methods
float
get_last_successful_sync_time()
Get last time (in epoch format) repositories have been updated successfully.
source code
bool
are_repositories_old()
Return whether repositories are old and should be updated.
source code
Class Variables
  REPOSITORY_OLD_DAYS = 10
Properties

Inherited from object: __class__

Method Details

__init__(self, entropy_client, repo_identifiers=None, force=False, fetch_security=True, gpg=True)
(Constructor)

source code 

Entropy Client Repositories management interface constructor.

Parameters:
  • entropy_client (entropy.client.interfaces.client.Client) - a valid entropy.client.interfaces.client.Client instance
  • repo_identifiers (list @) - list of repository identifiers you want to take into consideration
Overrides: object.__init__

get_last_successful_sync_time()
Static Method

source code 

Get last time (in epoch format) repositories have been updated successfully.

Returns: float
epoch if info is available, or None

are_repositories_old()
Static Method

source code 

Return whether repositories are old and should be updated.

Returns: bool
True, if old

sync(self)

source code 

Start repository synchronization.

Returns: int
sync status (0 means all good; != 0 means error).