androupdate module

androupdate.controlled_update_packages(import_db_name, package_names, DLS_PER_INTERVAL=9223372036854775807, SLEEP_TIME=0)[source]

Same as update_packages but try to be not so aggressive with downloading (at least if specified via parameters)

Parameters:

import_db_name : str

package_names : iterable<str>

DLS_PER_INTERVAL : int, optional (default is sys.maxint)

Controls how much updates will be tried until to sleep ``SLEEP_TIME`

SLEEP_TIME : int, optional (default is 0)

Sleep SLEEP_TIME

androupdate.get_outdated(import_db_name, packages)[source]

Query the import_db_name to get the imported versions and return the outdated ones.

Returns:generator<str>
androupdate.update_packages(import_db_name, package_names)[source]

Update all package_names.

Query the import_db_name to get the imported versions and check wether a new one is available and download it.

Parameters:

import_db_name : str

package_names : iterable<str>