Package dak :: Module admin
[hide private]
[frames] | no frames]

Module admin

source code

Configure dak parameters in the database

Classes [hide private]
  SuiteConfigSerializer
Functions [hide private]
 
warn(msg) source code
 
die(msg, exit_code=1) source code
 
die_arglen(args, args_needed, msg) source code
 
get_suite_or_die(suite_name, session=None, error_message=None) source code
 
usage(exit_code=0)
Perform administrative work on the dak database.
source code
 
__architecture_list(d, args) source code
 
__architecture_add(d, args) source code
 
__architecture_rm(d, args) source code
 
architecture(args) source code
 
component_list() source code
 
component_add(args) source code
 
component_rm(name) source code
 
component_rename(oldname, newname) source code
 
component(command) source code
 
__suite_list(d, args) source code
 
__suite_show(d, args) source code
 
__suite_add(d, args, addallarches=False) source code
 
__suite_rm(d, args) source code
 
__suite_add_build_queue(d, args) source code
 
suite(args) source code
 
__suite_architecture_list(d, args) source code
 
__suite_architecture_listarch(d, args) source code
 
__suite_architecture_listsuite(d, args) source code
 
__suite_architecture_add(d, args) source code
 
__suite_architecture_rm(d, args) source code
 
suite_architecture(args) source code
 
__suite_component_list(d, args) source code
 
__suite_component_listcomponent(d, args) source code
 
__suite_component_listsuite(d, args) source code
 
__suite_component_add(d, args) source code
 
__suite_component_rm(d, args) source code
 
suite_component(args) source code
 
_serialize_suite(x) source code
 
_deserialize_suite(x) source code
 
_serialize_policy_queue(x, session=None) source code
 
_deserialize_policy_queue(x) source code
 
_serialize_archive(x, session=None) source code
 
_get_suite_value(suite, conf_name) source code
 
_set_suite_value(suite, conf_name, new_value) source code
 
__suite_config_get(d, args, direct_value=False, json_format=False) source code
 
__suite_config_set(d, args) source code
 
__suite_config_set_confing_args_as_dict(args) source code
 
__suite_config_internal_set(suite, suite_name, kvpairs, print_config_set=True) source code
 
__suite_config_set_json(d, args) source code
 
__suite_config_list(d, args, json_format=False) source code
 
suite_config(args) source code
 
archive_list() source code
 
archive_add(args) source code
 
archive_rm(name) source code
 
archive_rename(oldname, newname) source code
 
archive(command) source code
 
__version_check_list(d) source code
 
__version_check_list_suite(d, suite_name) source code
 
__version_check_add(d, suite_name, check, reference_name) source code
 
__version_check_rm(d, suite_name, check, reference_name) source code
 
version_check(args) source code
 
show_config(args) source code
 
show_keyring(args) source code
 
keyring_add_buildd(command) source code
 
keyring(command) source code
 
change_component_source(transaction, suite, component, source_names) source code
 
change_component_binary(transaction, suite, component, binary_names) source code
 
change_component(args) source code
 
forget_signature(args) source code
 
main()
Perform administrative work on the dak database
source code
Variables [hide private]
  dispatch = {}
  dryrun = False
  SUITE_CONFIG_READ_ONLY = object()
  SUITE_CONFIG_WRITABLE_ONLY_VIA_JSON = object()
  CUSTOM_SUITE_CONFIG_SERIALIZERS = {'archive': SuiteConfigSeria...
  ALLOWED_SUITE_CONFIGS = {'accept_binary_uploads': utils.parse_...

Imports: collections, json, sys, dataclass, Any, Callable, apt_pkg, daklib, utils, NoResultFound


Function Details [hide private]

_serialize_policy_queue(x, session=None)

source code 
Decorators:
  • @session_wrapper

_serialize_archive(x, session=None)

source code 
Decorators:
  • @session_wrapper

Variables Details [hide private]

CUSTOM_SUITE_CONFIG_SERIALIZERS

Value:
{'archive': SuiteConfigSerializer(db_name= 'archive_id', serialize= _s\
erialize_archive, deserialize= None), 'debugsuite': SuiteConfigSeriali\
zer(db_name= 'debugsuite_id', serialize= _serialize_suite, deserialize\
= _deserialize_suite), 'new_queue': SuiteConfigSerializer(db_name= 'ne\
w_queue_id', serialize= _serialize_policy_queue, deserialize= _deseria\
lize_policy_queue), 'policy_queue': SuiteConfigSerializer(db_name= 'po\
licy_queue_id', serialize= _serialize_policy_queue, deserialize= _dese\
rialize_policy_queue),}

ALLOWED_SUITE_CONFIGS

Value:
{'accept_binary_uploads': utils.parse_boolean_from_user, 'accept_sourc\
e_uploads': utils.parse_boolean_from_user, 'allowcsset': utils.parse_b\
oolean_from_user, 'announce': SUITE_CONFIG_WRITABLE_ONLY_VIA_JSON, 'ar\
chive': SUITE_CONFIG_READ_ONLY, 'butautomaticupgrades': utils.parse_bo\
olean_from_user, 'byhash': utils.parse_boolean_from_user, 'changelog':\
 str, 'changelog_url': str, 'checksums': SUITE_CONFIG_WRITABLE_ONLY_VI\
A_JSON, 'close_bugs': utils.parse_boolean_from_user, 'codename': SUITE\
_CONFIG_READ_ONLY, 'debugsuite': str, 'description': str, 'include_lon\
...