univention.updater.scripts package
Contents
univention.updater.scripts package¶
Submodules¶
univention.updater.scripts.actualize module¶
- class univention.updater.scripts.actualize.Tee(files=[], stdout=True, filter=None)[source]¶
Bases:
object
Writes the given string to several files at once. Could by used with the print statement
- univention.updater.scripts.actualize.getUpdate()[source]¶
Small function waiting for apt lockfile to vanish then starts apt-get update
- Return type
- univention.updater.scripts.actualize.check(configRegistry, dist_upgrade=False)[source]¶
Just probe if there are packages to add or remove
- univention.updater.scripts.actualize.getPackageList(configRegistry, job)[source]¶
Get a list of packages to remove or add, depending on the value of job.
- Parameters
configRegistry (
ConfigRegistry
) – UCR instance.job (
Literal
[‘add’, ‘remove’]) – add or remove.
- Return type
- Returns
List of package names.
univention.updater.scripts.kernel module¶
Prune no longer required Linux kernel packages.
univention.updater.scripts.list_installed_unmaintained_packages module¶
This script lists all currently installed packages that are not maintained by Univention.
- univention.updater.scripts.list_installed_unmaintained_packages.get_unmaintained_packages(maintained)[source]¶
- univention.updater.scripts.list_installed_unmaintained_packages.get_maintained_packages(maintained)[source]¶
- univention.updater.scripts.list_installed_unmaintained_packages.print_packages(packages)[source]¶
- Return type
- univention.updater.scripts.list_installed_unmaintained_packages.print_unmaintained_packages(packages)[source]¶
- Return type
- univention.updater.scripts.list_installed_unmaintained_packages.print_wrapped(text)[source]¶
- Return type
univention.updater.scripts.policy_maintenance module¶
univention.updater.scripts.policy_repo_server module¶
univention.updater.scripts.policy_repo_sync module¶
univention.updater.scripts.repo_create module¶
Creates a local repository.
- univention.updater.scripts.repo_create.check_preconditions(options)[source]¶
Check for already existing mirror and for debmirror package
- Return type
univention.updater.scripts.repo_update module¶
univention.updater.scripts.statistics module¶
- univention.updater.scripts.statistics.encode_number(number, significant_digits=3)[source]¶
- Return type
- univention.updater.scripts.statistics.encode_additional_info(users=None, role=None)[source]¶
- Return type
univention.updater.scripts.updater module¶
Tool for updating local system
- exception univention.updater.scripts.updater.UpdateError(msg, errorsource)[source]¶
Bases:
Exception
Exception to signal errors on update.
- Parameters
msg – Human readable message.
errorsource – One of ‘SETTINGS’, ‘PREPARATION’, ‘PREUP’, ‘UPDATE’, ‘POSTUP’
- univention.updater.scripts.updater.update_status(**kwargs)[source]¶
update updater_status and write status to disk
Keys: - current_version ==> UCS_Version ==> 2.3-1 - next_version ==> UCS_Version ==> 2.3-2 - target_version ==> UCS_Version ==> 2.4-0 - type ==> (LOCAL|NET) - status ==> (RUNNING|FAILED|DONE) - phase ==> (PREPARATION|PREUP|UPDATE|POSTUP) ==> only valid if status=RUNNING - errorsource ==> (SETTINGS|PREPARATION|PREUP|UPDATE|POSTUP)
- univention.updater.scripts.updater.get_status()[source]¶
Read Updater status from file.
- Returns
Dictionary with status
See also
- univention.updater.scripts.updater.remove_temporary_sources_list()[source]¶
Add the temporary sources.list.
- univention.updater.scripts.updater.add_temporary_sources_list(temporary_sources_list)[source]¶
Add line to a temporary sources.list.
univention.updater.scripts.upgrade module¶
Install UCS release and errata updates.
- univention.updater.scripts.upgrade.dprint(silent, msg, newline=True, debug=False)[source]¶
Print debug output.
- Return type
- univention.updater.scripts.upgrade.update_status(**kwargs)[source]¶
update updater_status and write status to disk
Keys: - current_version ==> UCS_Version ==> 2.3-1 - next_version ==> UCS_Version ==> 2.3-2 - updatetype ==> (LOCAL|NET) - status ==> (RUNNING|FAILED|DONE) - errorsource ==> (SETTINGS|PREPARATION|PREUP|UPDATE|POSTUP)
- Return type
- univention.updater.scripts.upgrade.readcontinue(msg)[source]¶
Print message and read yes/no/abort answer.
- Return type
- univention.updater.scripts.upgrade.performUpdate(options, checkForUpdates=False, silent=False)[source]¶
- univention.updater.scripts.upgrade.do_release_update(options, checkForUpdates, silent)[source]¶
- Return type
- univention.updater.scripts.upgrade.do_package_updates(options, checkForUpdates, silent)[source]¶
- Return type