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

Class MiscMixin

source code


Instance Methods
 
reload_constants(self) source code
 
setup_default_file_perms(self, filepath) source code
 
resources_create_lock(self) source code
 
resources_remove_lock(self) source code
 
resources_check_lock(self) source code
 
check_pid_file_lock(self, pidfile) source code
 
create_pid_file_lock(self, pidfile, mypid=None) source code
 
application_lock_check(self, silent=False) source code
 
lock_check(self, check_function) source code
 
backup_constant(self, constant_name) source code
 
set_priority(self, low=0) source code
 
reload_repositories_config(self, repositories=None) source code
 
switch_chroot(self, chroot='') source code
 
get_file_viewer(self) source code
 
get_file_editor(self) source code
 
add_user_package_set(self, set_name, set_atoms) source code
 
remove_user_package_set(self, set_name) source code
 
is_installed_idpackage_in_system_mask(self, idpackage) source code
 
get_branch_from_download_relative_uri(self, db_download_uri) source code
 
swap_branch_in_download_relative_uri(self, new_branch, db_download_uri) source code
 
unused_packages_test(self, dbconn=None) source code
 
get_licenses_to_accept(self, install_queue) source code
 
get_text_license(self, license_name, repoid) source code
 
set_branch(self, branch)
Set new Entropy branch.
source code
 
get_meant_packages(self, search_term, from_installed=False, valid_repos=[]) source code
 
list_repo_categories(self) source code
 
list_repo_packages_in_category(self, category) source code
 
get_category_description_data(self, category) source code
 
list_installed_packages_in_category(self, category) source code
 
get_package_match_config_protect(self, match, mask=False) source code
 
get_installed_package_config_protect(self, idpackage, mask=False) source code
 
get_system_config_protect(self, mask=False) source code
 
inject_entropy_database_into_package(self, package_filename, data, treeupdates_actions=None) source code
 
get_tmp_dbpath(self) source code
 
quickpkg(self, atomstring, savedir=None) source code
 
quickpkg_handler(self, pkgdata, dirpath, edb=True, portdbPath=None, fake=False, compression='bz2', shiftpath='') source code
Method Details

set_branch(self, branch)

source code 

Set new Entropy branch. This is NOT thread-safe. Please note that if you call this method all your repository instance references will become invalid. This is caused by close_all_repositories and SystemSettings clear methods. Once you changed branch, the repository databases won't be available until you fetch them (through Repositories class)

@param branch -- new branch @type branch basestring @return None