mini_buildd.models.repository module

class mini_buildd.models.repository.EmailAddress(extra_options, pickled_data, address, name)

Bases: mini_buildd.models.base.Model

address

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

class Admin(model, admin_site)

Bases: mini_buildd.models.base.Admin

exclude = ('extra_options',)
media
exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

daemon_set

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

objects = <django.db.models.manager.Manager object>
repository_set

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

class mini_buildd.models.repository.Suite(id, extra_options, pickled_data, name)

Bases: mini_buildd.models.base.Model

name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

class Admin(model, admin_site)

Bases: mini_buildd.models.base.Admin

exclude = ('extra_options',)
media
clean(*args, **kwargs)

Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field defined by NON_FIELD_ERRORS.

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

layout_set

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

objects = <django.db.models.manager.Manager object>
suiteoption_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

class mini_buildd.models.repository.SuiteOption(id, extra_options, pickled_data, layout, suite, uploadable, experimental, migrates_to, build_keyring_package, auto_migrate_after, not_automatic, but_automatic_upgrades)

Bases: mini_buildd.models.base.Model

layout

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

suite

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

uploadable

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

experimental

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

migrates_to

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

build_keyring_package

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

auto_migrate_after

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

not_automatic

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

but_automatic_upgrades

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

clean(*args, **kwargs)

Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field defined by NON_FIELD_ERRORS.

rollback

Rollback field temporarily implemented as extra_option.

mbd_get_distribution_string(repository, distribution, rollback=None)
mbd_get_apt_pin(repository, distribution)
mbd_get_apt_preferences(repository, distribution, prio=1)
mbd_get_sort_no()

Compute number that may be used to sort suites from ‘stable’ (0) towards ‘experimental’.

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

layout_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

migrates_to_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
suite_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

suiteoption_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

class mini_buildd.models.repository.SuiteOptionInline(parent_model, admin_site)

Bases: django.contrib.admin.options.TabularInline

model

alias of SuiteOption

extra = 1
media
class mini_buildd.models.repository.Layout(extra_options, pickled_data, name, default_version, mandatory_version_regex, experimental_default_version, experimental_mandatory_version_regex)

Bases: mini_buildd.models.base.Model

name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

suites

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

default_version

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

mandatory_version_regex

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

experimental_default_version

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

experimental_mandatory_version_regex

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

class Admin(model, admin_site)

Bases: mini_buildd.models.base.Admin

fieldsets = (('Basics', {'fields': ('name',)}), ('Version Options', {'classes': ('collapse',), 'fields': ('default_version', 'mandatory_version_regex', 'experimental_default_version', 'experimental_mandatory_version_regex')}), ('Extra Options', {'classes': ('collapse',), 'description': "\n<b>Supported extra options</b>\n<p><em>Meta-Distributions: META=CODENAME-SUITE[ META=CODENAME-SUITE[...</em>: Support METAs alone as distribution identifier.</p>\n<p>\nMeta distribution identifiers should be unique across all\nrepositories; usually, a layout with meta distributions should\nonly be used by at most one repository.\n</p>\n<p>\n<em>Example</em>:\n<kbd>Meta-Distributions: unstable=sid-unstable experimental=sid-experimental</kbd>\n(see standard layout 'Debian Developer'), to allow upload/testing of\npackages (to unstable,experimental,..) aimed for Debian.\n</p>\n", 'fields': ('extra_options',)}))
inlines = (<class 'mini_buildd.models.repository.SuiteOptionInline'>,)
classmethod mbd_meta_create_defaults(msglog)

Create default layouts and suites.

media
mbd_get_mandatory_version_regex(repository, distribution, suite_option)
mbd_get_default_version(repository, distribution, suite_option)
mbd_get_reverse_dependencies()

When the layout changes, all repos that use that layout also change.

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

objects = <django.db.models.manager.Manager object>
repository_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

suiteoption_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

class mini_buildd.models.repository.ArchitectureOption(id, extra_options, pickled_data, architecture, distribution, optional, build_architecture_all)

Bases: mini_buildd.models.base.Model

architecture

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

distribution

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

optional

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

build_architecture_all

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

clean(*args, **kwargs)

Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field defined by NON_FIELD_ERRORS.

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

architecture_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

distribution_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
class mini_buildd.models.repository.ArchitectureOptionInline(parent_model, admin_site)

Bases: django.contrib.admin.options.TabularInline

model

alias of ArchitectureOption

exclude = ('extra_options',)
extra = 1
media
class mini_buildd.models.repository.Distribution(id, extra_options, pickled_data, base_source, build_dep_resolver, apt_allow_unauthenticated, lintian_mode, lintian_extra_options, piuparts_mode, piuparts_extra_options, piuparts_root_arg, chroot_setup_script, sbuildrc_snippet)

Bases: mini_buildd.models.base.Model

base_source

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

extra_sources

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

components

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

architectures

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

RESOLVER_APT = 0
RESOLVER_APTITUDE = 1
RESOLVER_INTERNAL = 2
RESOLVER_CHOICES = ((0, 'apt'), (1, 'aptitude'), (2, 'internal'))
build_dep_resolver

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

apt_allow_unauthenticated

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

LINTIAN_DISABLED = 0
LINTIAN_RUN_ONLY = 1
LINTIAN_FAIL_ON_ERROR = 2
LINTIAN_FAIL_ON_WARNING = 3
LINTIAN_CHOICES = ((0, "Don't run lintian"), (1, 'Run lintian'), (2, 'Run lintian and fail on errors'), (3, 'Run lintian and fail on warnings'))
lintian_mode

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

lintian_extra_options

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

PIUPARTS_DISABLED = 0
PIUPARTS_RUN_ONLY = 1
PIUPARTS_FAIL_ON_ERROR = 2
PIUPARTS_FAIL_ON_WARNING = 3
PIUPARTS_CHOICES = ((0, "Don't run piuparts"), (1, 'Run piuparts'), (2, 'Run piuparts and fail on errors'), (3, 'Run piuparts and fail on warnings'))
piuparts_mode

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

piuparts_extra_options

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

piuparts_root_arg

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

chroot_setup_script

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

sbuildrc_snippet

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

class Admin(model, admin_site)

Bases: mini_buildd.models.base.Admin

fieldsets = (('Basics', {'fields': ('base_source', 'extra_sources', 'components')}), ('Build options', {'fields': ('build_dep_resolver', 'apt_allow_unauthenticated', 'lintian_mode', 'lintian_extra_options')}), ('Chroot setup options', {'classes': ('collapse',), 'fields': ('chroot_setup_script', 'sbuildrc_snippet')}), ('Extra Options', {'classes': ('collapse',), 'description': "\n<b>Internal-APT-Priority: N</b>: Set APT priority for internal apt sources in builds.\n<p>\nThe default is 1, which means you will only build against newer\npackages in our own repositories in case it's really needed by the\npackage's build dependencies. This is the recommended behaviour,\nproducing sparse dependencies.\n</p>\n<p>\nHowever, some packages with incorrect build dependencies might\nbreak anyway, while they would work fine when just build against\nthe newest version available.\n</p>\n<p>\nYou may still solve this on a per-package basis, using the\nresp. upload option via changelog. However, in case you don't care\nabout sparse dependencies in this distribution in general, you can\npimp the internal priority up here.\n</p>\n<p>\n<em>Example</em>: Always build against newer internal packages:\n<pre>Internal-APT-Priority: 500</pre>\n</p>\n<b>Deb-Build-Options: ...</b>: Set extra build options.\n<p>\nValues to add to environment variable <tt>DEB_BUILD_OPTIONS</tt> used when building packages.\nSee <a href='https://www.debian.org/doc/debian-policy/ch-source.html#debian-rules-and-deb-build-options'>Debian policy</a> and\n<a href='https://lists.debian.org/debian-devel/2015/12/msg00262.html'>Debian dbgsym announcement</a> for valid options.\n</p>\n<p>\nAvoid using option <tt>parallel=N</tt> here - this is handled by daemon's <tt>sbuild_jobs</tt> setting, overwriting this here\ndoes not make much sense imho.\n</p>\n<p>\nOption <tt>noddebs</tt> is useful for Ubuntu distributions that for\nsome reason create their automated debug packages with file appendix\n'ddeb', as <a href='https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=730572'>reprepo fails on them</a>.\n</p>\n<p>\n<em>Example</em>: Never build automatic debug packages (Ubuntu bionic, cosmic):\n<pre>Deb-Build-Options: noddebs</pre>\n</p>\n", 'fields': ('extra_options',)}))
inlines = (<class 'mini_buildd.models.repository.ArchitectureOptionInline'>,)
filter_horizontal = ('extra_sources', 'components')
classmethod mbd_meta_add_base_sources(msglog)

Add default distribution objects for all base sources found.

media
mbd_get_components()
mbd_get_architectures(show_opt_flag=False)
mbd_get_archall_architectures()
mbd_get_mandatory_architectures()
mbd_get_apt_line(repository, suite_option, rollback=None, prefix='deb ')
mbd_get_apt_sources_list(repository, suite_option)
mbd_get_apt_preferences(repository, suite_option, internal_apt_priority_override=None)
mbd_get_sbuildrc_snippet(arch)
mbd_get_reverse_dependencies()

When the distribution changes, all repos that use that distribution also change.

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

architectureoption_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

base_source_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

get_build_dep_resolver_display(*, field=<django.db.models.fields.IntegerField: build_dep_resolver>)
get_lintian_mode_display(*, field=<django.db.models.fields.IntegerField: lintian_mode>)
get_piuparts_mode_display(*, field=<django.db.models.fields.IntegerField: piuparts_mode>)
id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
repository_set

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

class mini_buildd.models.repository.Repository(extra_options, pickled_data, status, last_checked, auto_reactivate, identity, layout, allow_unauthenticated_uploads, extra_uploader_keyrings, notify_changed_by, notify_maintainer, reprepro_morguedir, external_home_url)

Bases: mini_buildd.models.base.StatusModel

identity

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

layout

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

distributions

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

allow_unauthenticated_uploads

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

extra_uploader_keyrings

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

notify

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

notify_changed_by

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

notify_maintainer

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

reprepro_morguedir

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

external_home_url

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

class Admin(model, admin_site)

Bases: mini_buildd.models.base.Admin

fieldsets = (('Basics', {'fields': ('identity', 'layout', 'distributions', 'allow_unauthenticated_uploads', 'extra_uploader_keyrings')}), ('Notify and extra options', {'fields': ('notify', 'notify_changed_by', 'notify_maintainer', 'reprepro_morguedir', 'external_home_url')}))
readonly_fields = []
filter_horizontal = ('distributions', 'notify')
get_readonly_fields(_request, obj=None)

Forbid change identity on existing repository.

classmethod mbd_meta_add_test(msglog)

Add sandbox repository ‘test’.

classmethod mbd_meta_add_debdev(msglog)

Add developer repository ‘debdev’, only for sid.

media
clean(*args, **kwargs)

Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field defined by NON_FIELD_ERRORS.

mbd_get_uploader_keyring()
mbd_get_path()
mbd_get_description(distribution, suite_option)
mbd_get_meta_distributions(distribution, suite_option)
mbd_distribution_strings(**suiteoption_filter)

Return a list with all full distributions strings, optionally matching a suite options filter (unstable, experimental,…).

mbd_get_apt_keys(distribution)
mbd_get_internal_suite_dependencies(suite_option)
mbd_package_list(pattern, typ=None, with_rollbacks=False, dist_regex='')
mbd_get_dsc_path(distribution, package, version)

Get component and (absolute) DSC path of an installed package (http://host:port/<path>).

mbd_package_show(package)

Show package information.

Result is of the form:

[(CODENAME, [{“distribution”: DIST,
“component”: COMPONENT, “source”: PKG_NAME, “sourceversion”: VERSION, “migrates_to”: DIST, “uploadable”: BOOL, “experimental”: BOOL, “sort_no”: NO, “rollbacks”: [{“no”: 0, “distribution”: DIST, “source”: PKG_NAME, “sourceversion”: VERS0}, …]}])]
mbd_package_find(package, distribution=None, version=None)
mbd_package_notify(status, distribution, pkg, body, extra=None, message=None, msglog=<Logger mini_buildd.models.repository (WARNING)>)
mbd_package_purge_orphaned_logs(package=None, msglog=<Logger mini_buildd.models.repository (WARNING)>)
mbd_package_migrate(package, distribution, suite, full=False, rollback=None, version=None, msglog=<Logger mini_buildd.models.repository (WARNING)>)
mbd_package_remove(package, distribution, suite, rollback=None, version=None, msglog=<Logger mini_buildd.models.repository (WARNING)>)
mbd_package_precheck(distribution, suite_option, package, version)
mbd_package_install(distribution, suite_option, changes, bresults)

Install a dict arch:bres of successful build results.

mbd_prepare(_request)

Idempotent repository preparation. This may be used as-is as mbd_sync.

mbd_sync(request)
mbd_remove(_request)
mbd_check(request)
mbd_get_dependencies()
exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

get_next_by_last_checked(*, field=<django.db.models.fields.DateTimeField: last_checked>, is_next=True, **kwargs)
get_previous_by_last_checked(*, field=<django.db.models.fields.DateTimeField: last_checked>, is_next=False, **kwargs)
get_status_display(*, field=<django.db.models.fields.IntegerField: status>)
layout_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
uploader_set

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

mini_buildd.models.repository.get_meta_distribution_map()

Get a dict of the meta distributions: meta -> actual.

mini_buildd.models.repository.map_incoming_distribution(incoming_dist)

Map incoming distribution to internal.