Package entropy :: Module tools

Module tools

source code

Functions
bool
is_root()
Return whether running process has root priviledges.
source code
 
is_user_in_entropy_group(uid=None)
docstring_title
source code
 
get_uid_from_user(username)
docstring_title
source code
 
get_gid_from_group(groupname)
docstring_title
source code
 
get_user_from_uid(uid)
docstring_title
source code
 
get_group_from_gid(gid)
docstring_title
source code
 
kill_threads()
docstring_title
source code
 
print_traceback(f=None)
docstring_title
source code
 
get_traceback()
docstring_title
source code
 
print_exception(returndata=False)
docstring_title
source code
 
get_remote_data(url, timeout=5)
docstring_title
source code
 
is_png_file(path)
docstring_title
source code
 
is_jpeg_file(path)
docstring_title
source code
 
is_bmp_file(path)
docstring_title
source code
 
is_gif_file(path)
docstring_title
source code
 
is_supported_image_file(path)
docstring_title
source code
 
is_april_first()
docstring_title
source code
 
add_proxy_opener(module, data)
docstring_title
source code
 
is_valid_ascii(string)
docstring_title
source code
 
is_valid_unicode(string)
docstring_title
source code
 
is_valid_email(email)
docstring_title
source code
 
islive()
docstring_title
source code
 
get_file_size(file_path)
docstring_title
source code
 
sum_file_sizes(file_list)
docstring_title
source code
 
check_required_space(mountpoint, bytes_required)
docstring_title
source code
 
getstatusoutput(cmd)
Return (status, output) of executing cmd in a shell.
source code
 
movefile(src, dest, src_basedir=None)
docstring_title
source code
 
ebeep(count=5)
docstring_title
source code
 
application_lock_check(gentle=False)
docstring_title
source code
 
get_random_number()
docstring_title
source code
 
split_indexable_into_chunks(mystr, chunk_len)
docstring_title
source code
 
countdown(secs=5, what='Counting...', back=False)
docstring_title
source code
 
md5sum(filepath)
docstring_title
source code
 
sha512(filepath)
docstring_title
source code
 
sha256(filepath)
docstring_title
source code
 
sha1(filepath)
docstring_title
source code
 
md5sum_directory(directory)
docstring_title
source code
 
md5obj_directory(directory)
docstring_title
source code
 
getfd(filespec, readOnly=0)
docstring_title
source code
 
uncompress_file(file_path, destination_path, opener)
docstring_title
source code
 
compress_file(file_path, destination_path, opener, compress_level=None)
docstring_title
source code
 
compress_files(dest_file, files_to_compress, compressor='bz2')
docstring_title
source code
 
universal_uncompress(compressed_file, dest_path, catch_empty=False)
docstring_title
source code
 
unpack_gzip(gzipfilepath)
docstring_title
source code
 
unpack_bzip2(bzip2filepath)
docstring_title
source code
 
backup_client_repository()
docstring_title
source code
 
extract_xpak(tbz2file, tmpdir=None)
docstring_title
source code
 
read_xpak(tbz2file)
docstring_title
source code
 
unpack_xpak(xpakfile, tmpdir=None)
docstring_title
source code
 
suck_xpak(tbz2file, outputpath)
docstring_title
source code
 
append_xpak(tbz2file, atom)
docstring_title
source code
 
aggregate_edb(tbz2file, dbfile)
docstring_title
source code
 
extract_edb(tbz2file, dbpath=None)
docstring_title
source code
 
locate_edb(fileobj)
docstring_title
source code
 
remove_edb(tbz2file, savedir)
docstring_title
source code
 
create_md5_file(filepath)
docstring_title
source code
 
create_sha512_file(filepath)
docstring_title
source code
 
create_sha256_file(filepath)
docstring_title
source code
 
create_sha1_file(filepath)
docstring_title
source code
 
compare_md5(filepath, checksum)
docstring_title
source code
 
compare_sha512(filepath, checksum)
docstring_title
source code
 
compare_sha256(filepath, checksum)
docstring_title
source code
 
compare_sha1(filepath, checksum)
docstring_title
source code
 
md5string(string)
docstring_title
source code
 
sort_update_files(update_list)
docstring_title
source code
 
generic_file_content_parser(filepath)
docstring_title
source code
 
allocate_masked_file(file, fromfile)
docstring_title
source code
 
extract_elog(file)
docstring_title
source code
 
isjustpkgname(mypkg)
docstring_title
source code
 
ververify(myverx, silent=1)
docstring_title
source code
Integer
isvalidatom(myatom, allow_blockers=True)
Check to see if a depend atom is valid
source code
 
catsplit(mydep)
docstring_title
source code
String
get_operator(mydep)
Return the operator used in a depstring.
source code
Integer
isjustname(mypkg)
Checks to see if the depstring is only the package name (no version parts)
source code
Integer
isspecific(mypkg)
Checks to see if a package is in category/package-version or package-version format, possibly returning a cached result.
source code
 
catpkgsplit(mydata, silent=1)
Takes a Category/Package-Version-Rev and returns a list of each.
source code
 
pkgsplit(mypkg, silent=1)
docstring_title
source code
String
dep_getkey(mydepx)
Return the category/package-name of a depstring.
source code
String
dep_getcpv(mydep)
Return the category-package-version with any operators/slot specifications stripped off
source code
String
dep_getslot(mydep)
# Imported from portage.dep # $Id: dep.py 11281 2008-07-30 06:12:19Z zmedico $
source code
List
dep_getusedeps(depend)
# Imported from portage.dep # $Id: dep.py 11281 2008-07-30 06:12:19Z zmedico $
source code
 
remove_usedeps(depend)
docstring_title
source code
 
remove_slot(mydep)
# Imported from portage.dep # $Id: dep.py 11281 2008-07-30 06:12:19Z zmedico $
source code
 
remove_revision(ver)
docstring_title
source code
 
remove_tag(mydep)
docstring_title
source code
 
remove_entropy_revision(mydep)
docstring_title
source code
 
dep_get_entropy_revision(mydep)
docstring_title
source code
 
dep_get_portage_revision(mydep)
docstring_title
source code
 
dep_get_match_in_repos(mydep)
docstring_title
source code
 
dep_gettag(dep)
Retrieve the slot on a depend.
source code
 
remove_package_operators(atom)
docstring_title
source code
 
compare_versions(ver1, ver2)
docstring_title
source code
 
entropy_compare_versions(listA, listB) source code
 
g_n_w_cmp(a, b) source code
 
get_newer_version(versions)
docstring_title
source code
 
get_newer_version_stable(versions)
docstring_title
source code
 
g_e_n_w_cmp(a, b) source code
 
get_entropy_newer_version(versions)
docstring_title
source code
 
get_entropy_newer_version_stable(versions)
descendent order versions = [(version,tag,revision),(version,tag,revision)]
source code
 
isnumber(x)
docstring_title
source code
 
istextfile(filename, blocksize=512)
docstring_title
source code
 
istext(s)
docstring_title
source code
 
filter_duplicated_entries(alist)
docstring_title
source code
 
escape(*args)
docstring_title
source code
 
escape_single(x)
docstring_title
source code
 
unescape(val)
docstring_title
source code
 
unescape_list(*args)
docstring_title
source code
 
extract_ftp_host_from_uri(uri)
docstring_title
source code
 
spliturl(url)
docstring_title
source code
 
compress_tar_bz2(storepath, pathtocompress)
docstring_title
source code
 
spawn_function(f, *args, **kwds)
docstring_title
source code
 
uncompress_tar_bz2(filepath, extractPath=None, catchEmpty=False)
docstring_title
source code
 
bytes_into_human(bytes)
docstring_title
source code
 
hide_ftp_password(uri)
docstring_title
source code
 
extract_ftp_data(ftpuri)
docstring_title
source code
 
get_file_unix_mtime(path)
docstring_title
source code
 
get_random_temp_file()
docstring_title
source code
 
get_file_timestamp(path)
docstring_title
source code
 
convert_unix_time_to_human_time(unixtime)
docstring_title
source code
 
convert_unix_time_to_datetime(unixtime)
docstring_title
source code
 
get_current_unix_time()
docstring_title
source code
 
get_year()
docstring_title
source code
 
convert_seconds_to_fancy_output(seconds)
docstring_title
source code
 
cleanup(toCleanDirs=[])
docstring_title
source code
 
flatten(l, ltypes=(<type 'list'>, <type 'tuple'>))
docstring_title
source code
 
read_repositories_conf()
docstring_title
source code
 
write_ordered_repositories_entries(ordered_repository_list)
docstring_title
source code
 
save_repository_settings(repodata, remove=False, disable=False, enable=False)
docstring_title
source code
 
write_parameter_to_file(config_file, name, data)
docstring_title
source code
 
write_new_branch(branch)
docstring_title
source code
 
is_entropy_package_file(tbz2file)
docstring_title
source code
 
is_valid_string(string)
docstring_title
source code
 
is_valid_path(path)
docstring_title
source code
 
is_valid_md5(myhash)
docstring_title
source code
 
open_buffer()
docstring_title
source code
 
seek_till_newline(f)
docstring_title
source code
 
read_elf_class(elf_file)
docstring_title
source code
 
is_elf_file(elf_file)
docstring_title
source code
string
resolve_dynamic_library(library, requiring_executable)
Resolve given library name (as contained into ELF metadata) to a library path.
source code
 
read_elf_dynamic_libraries(elf_file)
docstring_title
source code
 
read_elf_broken_symbols(elf_file)
docstring_title
source code
 
read_elf_linker_paths(elf_file)
docstring_title
source code
 
xml_from_dict_extended(dictionary)
docstring_title
source code
 
dict_from_xml_extended(xml_string)
docstring_title
source code
 
xml_from_dict(dictionary)
docstring_title
source code
 
dict_from_xml(xml_string)
docstring_title
source code
 
create_package_filename(category, name, version, package_tag)
docstring_title
source code
 
create_package_atom_string(category, name, version, package_tag)
docstring_title
source code
 
extract_packages_from_set_file(filepath)
docstring_title
source code
 
collect_linker_paths()
docstring_title
source code
 
collect_paths()
docstring_title
source code
 
list_to_utf8(mylist)
docstring_title
source code
Variables
  ver_regexp = re.compile(r'^(cvs\.)?(\d+)((\.\d+)*)([a-z]?)((_(...
  suffix_regexp = re.compile(r'^(alpha|beta|rc|pre|p)(\d*)$')
  suffix_value = {'alpha': -4, 'beta': -3, 'p': 0, 'pre': -2, 'r...
  endversion_keys = ['pre', 'p', 'alpha', 'beta', 'rc']
  valid_category = re.compile(r'^\w[\w-]*')
  invalid_atom_chars_regexp = re.compile(r'[\(\)\|@]')
  dep_revmatch = re.compile(r'^r[0-9]')
  mappings = {' ': '+', '"': '""', '\'': '\'\''}
  readelf_avail_check = False
  ldd_avail_check = False
Function Details

is_root()

source code 

Return whether running process has root priviledges.

Returns: bool
root priviledges

is_user_in_entropy_group(uid=None)

source code 

docstring_title

Parameters:
  • uid ()

get_uid_from_user(username)

source code 

docstring_title

Parameters:
  • username ()

get_gid_from_group(groupname)

source code 

docstring_title

Parameters:
  • groupname ()

get_user_from_uid(uid)

source code 

docstring_title

Parameters:
  • uid ()

get_group_from_gid(gid)

source code 

docstring_title

Parameters:
  • gid ()

kill_threads()

source code 

docstring_title

print_traceback(f=None)

source code 

docstring_title

Parameters:
  • f ()

get_traceback()

source code 

docstring_title

print_exception(returndata=False)

source code 

docstring_title

Parameters:
  • returndata ()

get_remote_data(url, timeout=5)

source code 

docstring_title

Parameters:
  • url ()
  • timeout ()

is_png_file(path)

source code 

docstring_title

Parameters:
  • path ()

is_jpeg_file(path)

source code 

docstring_title

Parameters:
  • path ()

is_bmp_file(path)

source code 

docstring_title

Parameters:
  • path ()

is_gif_file(path)

source code 

docstring_title

Parameters:
  • path ()

is_supported_image_file(path)

source code 

docstring_title

Parameters:
  • path ()

is_april_first()

source code 

docstring_title

add_proxy_opener(module, data)

source code 

docstring_title

Parameters:
  • module ()
  • data ()

is_valid_ascii(string)

source code 

docstring_title

Parameters:
  • string ()

is_valid_unicode(string)

source code 

docstring_title

Parameters:
  • string ()

is_valid_email(email)

source code 

docstring_title

Parameters:
  • email ()

islive()

source code 

docstring_title

get_file_size(file_path)

source code 

docstring_title

Parameters:
  • file_path ()

sum_file_sizes(file_list)

source code 

docstring_title

Parameters:
  • file_list ()

check_required_space(mountpoint, bytes_required)

source code 

docstring_title

Parameters:
  • mountpoint ()
  • bytes_required ()

movefile(src, dest, src_basedir=None)

source code 

docstring_title

Parameters:
  • src ()
  • dest ()
  • src_basedir ()

ebeep(count=5)

source code 

docstring_title

Parameters:
  • count ()

application_lock_check(gentle=False)

source code 

docstring_title

Parameters:
  • gentle ()

get_random_number()

source code 

docstring_title

split_indexable_into_chunks(mystr, chunk_len)

source code 

docstring_title

Parameters:
  • mystr ()
  • chunk_len ()

countdown(secs=5, what='Counting...', back=False)

source code 

docstring_title

Parameters:
  • secs ()
  • what ()
  • back ()

md5sum(filepath)

source code 

docstring_title

Parameters:
  • filepath ()

sha512(filepath)

source code 

docstring_title

Parameters:
  • filepath ()

sha256(filepath)

source code 

docstring_title

Parameters:
  • filepath ()

sha1(filepath)

source code 

docstring_title

Parameters:
  • filepath ()

md5sum_directory(directory)

source code 

docstring_title

Parameters:
  • directory ()

md5obj_directory(directory)

source code 

docstring_title

Parameters:
  • directory ()

getfd(filespec, readOnly=0)

source code 

docstring_title

Parameters:
  • filespec ()
  • readOnly ()

uncompress_file(file_path, destination_path, opener)

source code 

docstring_title

Parameters:
  • file_path ()
  • destination_path ()
  • opener ()

compress_file(file_path, destination_path, opener, compress_level=None)

source code 

docstring_title

Parameters:
  • file_path ()
  • destination_path ()
  • opener ()
  • compress_level ()

compress_files(dest_file, files_to_compress, compressor='bz2')

source code 

docstring_title

Parameters:
  • dest_file ()
  • files_to_compress ()
  • compressor ()

universal_uncompress(compressed_file, dest_path, catch_empty=False)

source code 

docstring_title

Parameters:
  • compressed_file ()
  • dest_path ()
  • catch_empty ()

unpack_gzip(gzipfilepath)

source code 

docstring_title

Parameters:
  • gzipfilepath ()

unpack_bzip2(bzip2filepath)

source code 

docstring_title

Parameters:
  • bzip2filepath ()

backup_client_repository()

source code 

docstring_title

extract_xpak(tbz2file, tmpdir=None)

source code 

docstring_title

Parameters:
  • tbz2file ()
  • tmpdir ()

read_xpak(tbz2file)

source code 

docstring_title

Parameters:
  • tbz2file ()

unpack_xpak(xpakfile, tmpdir=None)

source code 

docstring_title

Parameters:
  • xpakfile ()
  • tmpdir ()

suck_xpak(tbz2file, outputpath)

source code 

docstring_title

Parameters:
  • tbz2file ()
  • outputpath ()

append_xpak(tbz2file, atom)

source code 

docstring_title

Parameters:
  • tbz2file ()
  • atom ()

aggregate_edb(tbz2file, dbfile)

source code 

docstring_title

Parameters:
  • tbz2file ()
  • dbfile ()

extract_edb(tbz2file, dbpath=None)

source code 

docstring_title

Parameters:
  • tbz2file ()
  • dbpath ()

locate_edb(fileobj)

source code 

docstring_title

Parameters:
  • fileobj ()

remove_edb(tbz2file, savedir)

source code 

docstring_title

Parameters:
  • tbz2file ()
  • savedir ()

create_md5_file(filepath)

source code 

docstring_title

Parameters:
  • filepath ()

create_sha512_file(filepath)

source code 

docstring_title

Parameters:
  • filepath ()

create_sha256_file(filepath)

source code 

docstring_title

Parameters:
  • filepath ()

create_sha1_file(filepath)

source code 

docstring_title

Parameters:
  • filepath ()

compare_md5(filepath, checksum)

source code 

docstring_title

Parameters:
  • filepath ()
  • checksum ()

compare_sha512(filepath, checksum)

source code 

docstring_title

Parameters:
  • filepath ()
  • checksum ()

compare_sha256(filepath, checksum)

source code 

docstring_title

Parameters:
  • filepath ()
  • checksum ()

compare_sha1(filepath, checksum)

source code 

docstring_title

Parameters:
  • filepath ()
  • checksum ()

md5string(string)

source code 

docstring_title

Parameters:
  • string ()

sort_update_files(update_list)

source code 

docstring_title

Parameters:
  • update_list ()

generic_file_content_parser(filepath)

source code 

docstring_title

Parameters:
  • filepath ()

allocate_masked_file(file, fromfile)

source code 

docstring_title

Parameters:
  • file ()
  • fromfile ()

extract_elog(file)

source code 

docstring_title

Parameters:
  • file ()

isjustpkgname(mypkg)

source code 

docstring_title

Parameters:
  • mypkg ()

ververify(myverx, silent=1)

source code 

docstring_title

Parameters:
  • myverx ()
  • silent ()

isvalidatom(myatom, allow_blockers=True)

source code 

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
Parameters:
  • atom (String) - The depend atom to check against
Returns: Integer
One of the following: 1) 0 if the atom is invalid 2) 1 if the atom is valid

catsplit(mydep)

source code 

docstring_title

Parameters:
  • mydep ()

get_operator(mydep)

source code 

Return the operator used in a depstring.

Example usage:

>>> from portage.dep import *
>>> get_operator(">=test-1.0")
'>='
Parameters:
  • mydep (String) - The dep string to check
Returns: String
The operator. One of: '~', '=', '>', '<', '=*', '>=', or '<='

isjustname(mypkg)

source code 

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
Parameters:
  • mypkg - The package atom to check
  • mypkg - String
Returns: Integer
One of the following: 1) 0 if the package string is not just the package name 2) 1 if it is

isspecific(mypkg)

source code 

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
Parameters:
  • mypkg (String) - The package depstring to check against
Returns: Integer
One of the following: 1) 0 if the package string is not specific 2) 1 if it is

catpkgsplit(mydata, silent=1)

source code 

Takes a Category/Package-Version-Rev and returns a list of each.

Parameters:
  • mydata (string) - Data to split
  • silent (Boolean (integer)) - suppress error messages
Returns:
  1. If each exists, it returns [cat, pkgname, version, rev]
  2. If cat is not specificed in mydata, cat will be "null"
  3. if rev does not exist it will be '-r0'
  4. If cat is invalid (specified but has incorrect syntax) an InvalidData Exception will be thrown

pkgsplit(mypkg, silent=1)

source code 

docstring_title

Parameters:
  • mypkg ()
  • silent=1 ()

dep_getkey(mydepx)

source code 

Return the category/package-name of a depstring.

Example usage:

>>> dep_getkey('media-libs/test-3.0')
'media-libs/test'
Parameters:
  • mydep (String) - The depstring to retrieve the category/package-name of
Returns: String
The package category/package-version

dep_getcpv(mydep)

source code 

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'
Parameters:
  • mydep (String) - The depstring
Returns: String
The depstring with the operator removed

dep_getslot(mydep)

source code 

# 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'
Parameters:
  • mydep (String) - The depstring to retrieve the slot of
Returns: String
The slot

dep_getusedeps(depend)

source code 

# 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')
Parameters:
  • depend (String) - The depstring to process
Returns: List
List of use flags ( or [] if no flags exist )

remove_usedeps(depend)

source code 

docstring_title

Parameters:
  • depend ()

remove_slot(mydep)

source code 


# 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

remove_revision(ver)

source code 

docstring_title

Parameters:
  • ver ()

remove_tag(mydep)

source code 

docstring_title

Parameters:
  • mydep ()

remove_entropy_revision(mydep)

source code 

docstring_title

Parameters:
  • mydep ()

dep_get_entropy_revision(mydep)

source code 

docstring_title

Parameters:
  • mydep ()

dep_get_portage_revision(mydep)

source code 

docstring_title

Parameters:
  • mydep ()

dep_get_match_in_repos(mydep)

source code 

docstring_title

Parameters:
  • mydep ()

dep_gettag(dep)

source code 

Retrieve the slot on a depend.

Example usage:

>>> dep_gettag('app-misc/test#2.6.23-sabayon-r1')
'2.6.23-sabayon-r1'

remove_package_operators(atom)

source code 

docstring_title

Parameters:
  • atom ()

compare_versions(ver1, ver2)

source code 

docstring_title

Parameters:
  • ver1 ()
  • ver2 ()

get_newer_version(versions)

source code 

docstring_title

Parameters:
  • versions ()

get_newer_version_stable(versions)

source code 

docstring_title

Parameters:
  • versions ()

get_entropy_newer_version(versions)

source code 

docstring_title

Parameters:
  • versions ()

isnumber(x)

source code 

docstring_title

Parameters:
  • x ()

istextfile(filename, blocksize=512)

source code 

docstring_title

Parameters:
  • filename ()
  • blocksize ()

istext(s)

source code 

docstring_title

Parameters:
  • s ()

filter_duplicated_entries(alist)

source code 

docstring_title

Parameters:
  • alist ()

escape(*args)

source code 

docstring_title

Parameters:
  • *args ()

escape_single(x)

source code 

docstring_title

Parameters:
  • x ()

unescape(val)

source code 

docstring_title

Parameters:
  • val ()

unescape_list(*args)

source code 

docstring_title

Parameters:
  • *args ()

extract_ftp_host_from_uri(uri)

source code 

docstring_title

Parameters:
  • uri ()

spliturl(url)

source code 

docstring_title

Parameters:
  • url ()

compress_tar_bz2(storepath, pathtocompress)

source code 

docstring_title

Parameters:
  • storepath ()
  • pathtocompress ()

spawn_function(f, *args, **kwds)

source code 

docstring_title

Parameters:
  • f ()
  • *args ()
  • **kwds ()

uncompress_tar_bz2(filepath, extractPath=None, catchEmpty=False)

source code 

docstring_title

Parameters:
  • filepath ()
  • extractPath ()
  • catchEmpty ()

bytes_into_human(bytes)

source code 

docstring_title

Parameters:
  • bytes ()

hide_ftp_password(uri)

source code 

docstring_title

Parameters:
  • uri ()

extract_ftp_data(ftpuri)

source code 

docstring_title

Parameters:
  • ftpuri ()

get_file_unix_mtime(path)

source code 

docstring_title

Parameters:
  • path ()

get_random_temp_file()

source code 

docstring_title

get_file_timestamp(path)

source code 

docstring_title

Parameters:
  • path ()

convert_unix_time_to_human_time(unixtime)

source code 

docstring_title

Parameters:
  • unixtime ()

convert_unix_time_to_datetime(unixtime)

source code 

docstring_title

Parameters:
  • unixtime ()

get_current_unix_time()

source code 

docstring_title

get_year()

source code 

docstring_title

convert_seconds_to_fancy_output(seconds)

source code 

docstring_title

Parameters:
  • seconds ()

cleanup(toCleanDirs=[])

source code 

docstring_title

Parameters:
  • toCleanDirs ()

flatten(l, ltypes=(<type 'list'>, <type 'tuple'>))

source code 

docstring_title

Parameters:
  • l ()
  • ltypes ()
  • tuple ()

read_repositories_conf()

source code 

docstring_title

write_ordered_repositories_entries(ordered_repository_list)

source code 

docstring_title

Parameters:
  • ordered_repository_list ()

save_repository_settings(repodata, remove=False, disable=False, enable=False)

source code 

docstring_title

Parameters:
  • repodata ()
  • remove ()
  • disable ()
  • enable ()

write_parameter_to_file(config_file, name, data)

source code 

docstring_title

Parameters:
  • config_file ()
  • name ()
  • data ()

write_new_branch(branch)

source code 

docstring_title

Parameters:
  • branch ()

is_entropy_package_file(tbz2file)

source code 

docstring_title

Parameters:
  • tbz2file ()

is_valid_string(string)

source code 

docstring_title

Parameters:
  • string ()

is_valid_path(path)

source code 

docstring_title

Parameters:
  • path ()

is_valid_md5(myhash)

source code 

docstring_title

Parameters:
  • myhash ()

open_buffer()

source code 

docstring_title

seek_till_newline(f)

source code 

docstring_title

Parameters:
  • f ()

read_elf_class(elf_file)

source code 

docstring_title

Parameters:
  • elf_file ()

is_elf_file(elf_file)

source code 

docstring_title

Parameters:
  • elf_file ()

resolve_dynamic_library(library, requiring_executable)

source code 

Resolve given library name (as contained into ELF metadata) to a library path.

Parameters:
  • library (string) - library name (as contained into ELF metadata)
  • requiring_executable (string) - path to ELF object that contains the given library name
Returns: string
resolved library path

read_elf_dynamic_libraries(elf_file)

source code 

docstring_title

Parameters:
  • elf_file ()

read_elf_broken_symbols(elf_file)

source code 

docstring_title

Parameters:
  • elf_file ()

read_elf_linker_paths(elf_file)

source code 

docstring_title

Parameters:
  • elf_file ()

xml_from_dict_extended(dictionary)

source code 

docstring_title

Parameters:
  • dictionary ()

dict_from_xml_extended(xml_string)

source code 

docstring_title

Parameters:
  • xml_string ()

xml_from_dict(dictionary)

source code 

docstring_title

Parameters:
  • dictionary ()

dict_from_xml(xml_string)

source code 

docstring_title

Parameters:
  • xml_string ()

create_package_filename(category, name, version, package_tag)

source code 

docstring_title

Parameters:
  • category ()
  • name ()
  • version ()
  • package_tag ()

create_package_atom_string(category, name, version, package_tag)

source code 

docstring_title

Parameters:
  • category ()
  • name ()
  • version ()
  • package_tag ()

extract_packages_from_set_file(filepath)

source code 

docstring_title

Parameters:
  • filepath ()

collect_linker_paths()

source code 

docstring_title

collect_paths()

source code 

docstring_title

list_to_utf8(mylist)

source code 

docstring_title

Parameters:
  • mylist ()

Variables Details

ver_regexp

Value:
re.compile(r'^(cvs\.)?(\d+)((\.\d+)*)([a-z]?)((_(pre|p|beta|alpha|rc)\\
d*)*)(-r(\d+))?$')

suffix_value

Value:
{'alpha': -4, 'beta': -3, 'p': 0, 'pre': -2, 'rc': -1}