Package entropy :: Module spm :: Class PortagePlugin

Class PortagePlugin

source code


Nested Classes

Inherited from SpmPlugin: paren_normalize

Instance Methods
 
init_singleton(self, OutputInterface)
Source Package Manager Plugin singleton method.
source code
 
write_to_log(self, message) source code
 
write_traceback_to_log(self) source code
 
list_glsa_packages(self, command='affected') source code
 
get_glsa_id_information(self, glsa_id) source code
 
run_fixpackages(self, myroot=None) source code
 
get_world_file(self) source code
 
get_third_party_mirrors(self, mirrorname) source code
 
get_spm_setting(self, var) source code
 
get_config_protect_and_mask(self) source code
 
get_best_atom(self, atom, match='bestmatch-visible') source code
 
get_best_masked_atom(self, atom) source code
 
get_category_description_data(self, category) source code
 
get_atom_category(self, atom) source code
 
get_atoms_in_system(self) source code
 
get_installed_atom(self, atom) source code
 
get_package_description(self, atom) source code
 
get_package_ebuild_path(self, atom) source code
 
get_package_changelog(self, atom) source code
 
get_installed_package_description(self, atom) source code
 
get_package_slot(self, atom) source code
 
get_installed_package_slot(self, atom) source code
 
get_installed_atoms(self, atom) source code
 
search_keys(self, key) source code
 
quickpkg(self, atom, dirpath) source code
 
get_package_use_file(self) source code
 
enable_package_useflags(self, atom, useflags) source code
 
disable_package_useflags(self, atom, useflags) source code
 
unset_package_useflags(self, atom, useflags) source code
 
get_package_useflags(self, atom) source code
 
get_installed_package_useflags(self, atom) source code
 
get_package_use_useflags(self, atom) source code
 
get_useflags(self) source code
 
get_useflags_force(self) source code
 
get_useflags_mask(self) source code
 
get_installed_package_setting(self, atom, setting) source code
 
get_package_setting(self, atom, setting) source code
 
query_files(self, atom) source code
 
query_belongs(self, filename, like=False) source code
 
query_belongs_multiple(self, filenames, like=False) source code
 
calculate_dependencies(self, my_iuse, my_use, my_license, my_depend, my_rdepend, my_pdepend, my_provide, my_src_uri) source code
 
src_uri_paren_reduce(self, src_uris) source code
 
usedeps_reduce(self, dependencies, enabled_useflags) source code
 
paren_reduce(self, mystr)
# deps.py -- Portage dependency resolution functions # Copyright 2003-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id: portage_dep.py 9174 2008-01-11 05:49:02Z zmedico $
source code
 
strip_empty(self, myarr)
# deps.py -- Portage dependency resolution functions # Copyright 2003-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id: portage_dep.py 9174 2008-01-11 05:49:02Z zmedico $
source code
 
use_reduce(self, deparray, uselist=[], masklist=[], matchall=0, excludeall=[])
# deps.py -- Portage dependency resolution functions # Copyright 2003-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id: portage_dep.py 9174 2008-01-11 05:49:02Z zmedico $
source code
 
paren_choose(self, dep_list) source code
 
dep_and_select(self, and_list) source code
 
dep_or_select(self, or_list) source code
 
paren_license_choose(self, dep_list) source code
 
get_vdb_path(self) source code
 
get_available_packages(self, categories=[], filter_reinstalls=True) source code
 
get_installed_packages(self, dbdir=None, categories=[]) source code
 
get_installed_packages_counter(self, dbdir=None) source code
 
get_set_config(self) source code
 
get_sets(self, builtin_sets) source code
 
get_set_atoms(self, pkgset_obj) source code
 
get_sets_expanded(self, builtin_sets=True) source code
 
refill_counter(self, dbdir=None) source code
 
spm_doebuild(self, myebuild, mydo, tree, cpv, portage_tmpdir=None, licenses=[], fork=False) source code
 
extract_pkg_metadata(self, package, silent=False, inject=False) source code

Inherited from core.Singleton: is_destroyed, is_singleton

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Static Methods

Inherited from core.Singleton: __new__

Properties

Inherited from object: __class__

Method Details

init_singleton(self, OutputInterface)

source code 

Source Package Manager Plugin singleton method. This method must be reimplemented by subclasses.

Parameters:
  • output_interface - Entropy output interface
Raises:
  • NotImplementedError - when method is not reimplemented
Overrides: SpmPlugin.init_singleton
(inherited documentation)

paren_reduce(self, mystr)

source code 


    # deps.py -- Portage dependency resolution functions
    # Copyright 2003-2004 Gentoo Foundation
    # Distributed under the terms of the GNU General Public License v2
    # $Id: portage_dep.py 9174 2008-01-11 05:49:02Z zmedico $

Take a string and convert all paren enclosed entities into sublists, optionally
futher splitting the list elements by spaces.

Example usage:
        >>> paren_reduce('foobar foo ( bar baz )',1)
        ['foobar', 'foo', ['bar', 'baz']]
        >>> paren_reduce('foobar foo ( bar baz )',0)
        ['foobar foo ', [' bar baz ']]

@param mystr: The string to reduce
@type mystr: String
@rtype: Array
@return: The reduced string in an array

strip_empty(self, myarr)

source code 


    # deps.py -- Portage dependency resolution functions
    # Copyright 2003-2004 Gentoo Foundation
    # Distributed under the terms of the GNU General Public License v2
    # $Id: portage_dep.py 9174 2008-01-11 05:49:02Z zmedico $

Strip all empty elements from an array

@param myarr: The list of elements
@type myarr: List
@rtype: Array
@return: The array with empty elements removed

use_reduce(self, deparray, uselist=[], masklist=[], matchall=0, excludeall=[])

source code 


    # deps.py -- Portage dependency resolution functions
    # Copyright 2003-2004 Gentoo Foundation
    # Distributed under the terms of the GNU General Public License v2
    # $Id: portage_dep.py 9174 2008-01-11 05:49:02Z zmedico $

Takes a paren_reduce'd array and reduces the use? conditionals out
leaving an array with subarrays

@param deparray: paren_reduce'd list of deps
@type deparray: List
@param uselist: List of use flags
@type uselist: List
@param masklist: List of masked flags
@type masklist: List
@param matchall: Resolve all conditional deps unconditionally.  Used by repoman
@type matchall: Integer
@rtype: List
@return: The use reduced depend array