| Home | Trees | Indices | Help |
|
|---|
|
|
# DESCRIPTION: # generic tools for all the handlers applications
Copyright (C) 2007-2008 Fabio Erculiani
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
| Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| Integer |
|
||
|
|||
| String |
|
||
| Integer |
|
||
| Integer |
|
||
|
|||
|
|||
| String |
|
||
| String |
|
||
| String |
|
||
| 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
|
|
ETP_ARCH_MAP =
|
|
arch =
|
|
arches =
|
|
| Function Details |
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
|
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.
|
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')
|
# 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
|
Retrieve the slot on a depend. Example usage: >>> dep_gettag('app-misc/test#2.6.23-sabayon-r1') '2.6.23-sabayon-r1' |
Resolve given library name (as contained into ELF metadata) to a library path.
|
| Variables Details |
ver_regexp
|
suffix_value
|
ETP_ARCH_MAP
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Aug 5 16:58:52 2009 | http://epydoc.sourceforge.net |