| Home | Trees | Indices | Help |
|
|---|
|
|
Author: Fabio Erculiani <lxnay@sabayonlinux.org>
Contact: lxnay@sabayonlinux.org
Copyright: Fabio Erculiani
License: GPL-2
Entropy miscellaneous tools module. In this module are enclosed all the miscellaneous functions used arount the Entropy codebase.
| Functions | |||
| bool |
|
||
| bool |
|
||
| int |
|
||
| int |
|
||
| string or None |
|
||
| string or None |
|
||
|
|||
|
|||
| string |
|
||
| string |
|
||
| string or bool |
|
||
| bool |
|
||
| bool |
|
||
|
|||
| bool |
|
||
|
|||
| bool |
|
||
| bool |
|
||
| int |
|
||
| int |
|
||
| bool |
|
||
|
|||
| bool |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| Integer |
|
||
|
|||
| String |
|
||
| Integer |
|
||
| Integer |
|
||
|
|||
|
|||
| String |
|
||
| String |
|
||
| String |
|
||
| List |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| list |
|
||
| list |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| string |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| Variables | |
ver_regexp = re.compile(r'^
|
|
suffix_regexp = re.compile(r'^
|
|
suffix_value =
|
|
endversion_keys =
|
|
valid_category = re.compile(r'^\w
|
|
invalid_atom_chars_regexp = re.compile(r'
|
|
dep_revmatch = re.compile(r'^r
|
|
mappings =
|
|
readelf_avail_check = False
|
|
ldd_avail_check = False
|
|
__package__ =
|
|
| Function Details |
Return whether running process has root priviledges.
|
Return whether UID or given UID (through uid keyword argument) is in the "entropy" group (see entropy.const.etpConst['sysgroup']).
|
Return UID for given username or -1 if not available.
|
Return GID value for given system group name if exists, otherwise return -1.
|
Return username belonging to given system UID.
|
Return group name belonging to given system GID
|
Call entropy.const's const_kill_threads() method. Service function available also here. |
Function called by Entropy when an exception occurs with the aim to give user a clue of what went wrong.
|
Return last available Python traceback.
|
Print last Python exception and frame variables values (if available) to stdout.
|
Fetch data at given URL (all the ones supported by Python urllib) and return it.
|
Return whether passed image file path "path" references a valid image file. Currently supported image file types are: PNG, JPEG, BMP, GIF.
|
Return whether today is April, 1st. Please keep the joke.
|
Add proxy opener to urllib module.
|
Return whether passed string only contains valid ASCII characters.
|
Return whether passed string is unicode.
|
Return whether passed string is contains a valid email address.
|
Return whether System is running in Live mode (off a CD/DVD). See entropy.const.const_islive() for more information.
|
Return size of given path passed in "file_path".
|
Return file size sum of given list of paths.
|
Check available space in mount point and if it satisfies the amount of required bytes given.
|
Move a file from source to destination in an atomic way.
|
docstring_title
|
docstring_title
|
docstring_title |
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title |
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
Check to see if a depend atom is valid Example usage: >>> isvalidatom('media-libs/test-3.0') 0 >>> isvalidatom('>=media-libs/test-3.0') 1
|
docstring_title
|
Return the operator used in a depstring. Example usage: >>> from portage.dep import * >>> get_operator(">=test-1.0") '>='
|
Checks to see if the depstring is only the package name (no version parts) Example usage: >>> isjustname('media-libs/test-3.0') 0 >>> isjustname('test') 1 >>> isjustname('media-libs/test') 1
|
Checks to see if a package is in category/package-version or package-version format, possibly returning a cached result. Example usage: >>> isspecific('media-libs/test') 0 >>> isspecific('media-libs/test-3.0') 1
|
Takes a Category/Package-Version-Rev and returns a list of each.
|
docstring_title
|
Return the category/package-name of a depstring. Example usage: >>> dep_getkey('media-libs/test-3.0') 'media-libs/test'
|
Return the category-package-version with any operators/slot specifications stripped off Example usage: >>> dep_getcpv('>=media-libs/test-3.0') 'media-libs/test-3.0'
|
# Imported from portage.dep # $Id: dep.py 11281 2008-07-30 06:12:19Z zmedico $ Retrieve the slot on a depend. Example usage: >>> dep_getslot('app-misc/test:3') '3'
|
# Imported from portage.dep # $Id: dep.py 11281 2008-07-30 06:12:19Z zmedico $ Pull a listing of USE Dependencies out of a dep atom. Example usage: >>> dep_getusedeps('app-misc/test:3[foo,-bar]') ('foo', '-bar')
|
docstring_title
|
# Imported from portage.dep
# $Id: dep.py 11281 2008-07-30 06:12:19Z zmedico $
Removes dep components from the right side of an atom:
* slot
* use
* repo
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
Retrieve the slot on a depend. Example usage: >>> dep_gettag('app-misc/test#2.6.23-sabayon-r1') '2.6.23-sabayon-r1' |
docstring_title
|
docstring_title
|
Return a sorted list of versions
|
Sort a list of entropy package versions.
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title # FIXME: rename this and make bz2 independent
|
docstring_title
|
docstring_title
|
docstring_title |
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title |
docstring_title |
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title |
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title |
docstring_title
|
docstring_title
|
docstring_title
|
Resolve given library name (as contained into ELF metadata) to a library path.
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title
|
docstring_title |
docstring_title |
| Variables Details |
ver_regexp
|
suffix_value
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sun Dec 13 00:16:16 2009 | http://epydoc.sourceforge.net |