Package entropy :: Package server :: Package interfaces :: Module db :: Class ServerPackagesRepositoryUpdater

Class ServerPackagesRepositoryUpdater

source code


This class handles the repository update across all the configured mirrors. It is used by entropy.server.interfaces.mirrors module and called from inside ServerPackagesRepository class.

Instance Methods
 
__init__(self, entropy_server, repository_id, enable_upload, enable_download, force=False)
ServerPackagesRepositoryUpdater constructor, called by ServerPackagesRepository.
source code
 
update(self)
Executes the repository update.
source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, entropy_server, repository_id, enable_upload, enable_download, force=False)
(Constructor)

source code 

ServerPackagesRepositoryUpdater constructor, called by ServerPackagesRepository.

Parameters:
  • enable_upload (bool) - if True, repository will be uploaded for syncing if required
  • enable_download (bool) - if True, repository will be downloaded for syncing if required
Overrides: object.__init__