libapk functions API
clean_cache()
Parameters: none
Remove files from the cache (APK_CACHE
eecho(msg, ...)
Parameters: $*
Echo to stderr
beautify_path(path)
Parameters: path
Removes double /'s from path.
die(errmsg)
Parameters: errmsg
print errmsg to std err and exit(1)
get_var(varname, default)
Parameters: varname default
Look for varname in the environment. If its not specified in
environment /etc/apk.conf will be looked up (overridden by
$APKTOOLS_CONF). If its not in the conf file the parameter "default"
will be returned.
init_globals()
Parameters: none
Assign default values to global variables if they are not specified in
environment or configuration file ($APKTOOLS_CONF)
dump_env()
Parameters: none
Print values of all global variables.
create_sha1sum() ¹
create_backup_sha1sum()
get_description() {
all_installed_with_desc()
all_installed()
get_installed_pkgv(pkg)
get_control() {
get_installed_pkgv() {
decompress_meta()
compress_meta()
pkgv_metafile()
pkgv_listfiles()
pkgv_backupfiles()
pkg_check()
get_media_type()
media_mount()
get_mounted_path()
media_umount()
load_repmod()
get_depend()
load_bakmod()