Package entropy :: Package client :: Package interfaces :: Module methods :: Class RepositoryMixin

Class RepositoryMixin

source code


Instance Methods
 
validate_repositories(self) source code
 
init_generic_memory_repository(self, repoid, description, package_mirrors=[]) source code
 
close_all_repositories(self, mask_clear=True) source code
 
is_repository_connection_cached(self, repoid) source code
 
open_repository(self, repoid) source code
 
load_repository_database(self, repoid, xcache=True, indexing=True) source code
 
get_repository_revision(self, reponame) source code
 
update_repository_revision(self, reponame) source code
 
get_repository_db_file_checksum(self, reponame) source code
 
add_repository(self, repodata) source code
 
remove_repository(self, repoid, disable=False) source code
 
shift_repository(self, repoid, toidx) source code
 
enable_repository(self, repoid) source code
 
disable_repository(self, repoid) source code
 
get_repository_settings(self, repoid) source code
 
add_tbz2_to_repos(self, tbz2file) source code
 
reopen_client_repository(self) source code
 
open_client_repository(self) source code
 
client_repository_sanity_check(self) source code
 
open_generic_database(self, dbfile, dbname=None, xcache=None, readOnly=False, indexing_override=None, skipChecks=False) source code
 
open_memory_database(self, dbname=None) source code
 
backup_database(self, dbpath, backup_dir=None, silent=False, compress_level=9) source code
 
restore_database(self, backup_path, db_destination, silent=False) source code
 
list_backedup_client_databases(self, client_dbdir=None) source code
tuple(set, bool)
run_repositories_post_branch_switch_hooks(self, old_branch, new_branch)
This method is called whenever branch is successfully switched by user.
source code
set
run_repository_post_branch_upgrade_hooks(self)
This method is called whenever branch is successfully switched by user and all the updates have been installed (also look at: run_repositories_post_branch_switch_hooks()).
source code
Method Details

run_repositories_post_branch_switch_hooks(self, old_branch, new_branch)

source code 

This method is called whenever branch is successfully switched by user. Branch is switched when user wants to upgrade the OS to a new major release. Any repository can be shipped with a sh script which if available, handles system configuration to ease the migration.

Parameters:
  • old_branch (string) - previously set branch
  • new_branch (string) - newly set branch
Returns: tuple(set, bool)
tuple composed by (1) list of repositories whose script has been run and (2) bool describing if scripts exited with error

run_repository_post_branch_upgrade_hooks(self)

source code 

This method is called whenever branch is successfully switched by user and all the updates have been installed (also look at: run_repositories_post_branch_switch_hooks()). Any repository can be shipped with a sh script which if available, handles system configuration to ease the migration.

Returns: set
list of repositories whose script has been run