mini_buildd.models.distribution module

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

Bases: Model

name

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: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: 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.distribution.SuiteOption(id, extra_options, pickled_data, layout, suite, uploadable, experimental, migrates_to, build_keyring_package, auto_migrate_after, not_automatic, but_automatic_upgrades)

Bases: 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.

property rollback

Rollback field temporarily implemented as extra_option.

mbd_get_sort_no()

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

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: 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
migrates_to_id
objects = <django.db.models.manager.Manager object>
suite_id
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.distribution.SuiteOptionInline(parent_model, admin_site)

Bases: TabularInline

model

alias of SuiteOption

extra = 1
exclude = ('pickled_data', 'extra_options')
property media
class mini_buildd.models.distribution.Layout(extra_options, pickled_data, name, default_version, mandatory_version_regex, experimental_default_version, experimental_mandatory_version_regex)

Bases: Model

MBD_HELP_EXTRA_OPTIONS = "\nMeta-Distributions: META=CODENAME-SUITE[ META=CODENAME-SUITE[...: Support METAs alone as distribution identifier.\n\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\nExample:\n---\nMeta-Distributions: unstable=sid-unstable experimental=sid-experimental\n---\n\n(See standard layout 'Debian Developer'): allows upload/testing of\npackages (to unstable,experimental,..) aimed for Debian.\n"
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(*args, **kwargs)

Bases: Admin

inlines = (<class 'mini_buildd.models.distribution.SuiteOptionInline'>,)
mbd_model

alias of Layout

property media
mbd_get_reverse_dependencies()

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

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: 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.distribution.ArchitectureOption(id, extra_options, pickled_data, architecture, distribution, optional, build_architecture_all)

Bases: 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: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

architecture_id
distribution_id
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.distribution.ArchitectureOptionInline(parent_model, admin_site)

Bases: TabularInline

model

alias of ArchitectureOption

exclude = ('pickled_data', 'extra_options')
extra = 1
property media
class mini_buildd.models.distribution.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: Model

MBD_HELP_EXTRA_OPTIONS = "\n===============================================================================================\nSbuild-Config-Blocks[-Top]: <BLOCK> ...: Use predefined sbuild config blocks (space-separated).\n===============================================================================================\nSbuild-Config-Blocks-Top: Blocks before the automated config.\nSbuild-Config-Blocks    : Blocks after the automated config.\n\nAvailable blocks:\n\nset-default-path         : auto: Always set $path, so config blocks may add to it (this is sbuild's default path)\nno-apt-update            : auto: Disable sbuild's internal apt update (we do a custom update later via chroot-setup commands)\napt-allow-unauthenticated: auto(if configured): Allow unauthenticated apt toggle (from buildrequest)\nccache                   : Enable ccache\n\n===============================================================================================\nSbuild-Setup-Blocks[-Top]: <BLOCK> ...: Use predefined sbuild setup blocks (space-separated).\n===============================================================================================\nSbuild-Setup-Blocks-Top: Blocks before the automated setup.\nSbuild-Setup-Blocks    : Blocks after the automated setup.\n\nAvailable blocks:\n\nshow-sbuildrc            : auto-top: Print used '.sbuildrc' (FYI)\napt-keys                 : auto-top: Copy APT keys from buildrequest to ``/etc/apt/trusted.gpg.d``\napt-allow-unauthenticated: auto-top(if configured): Allow unauthenticated APT\napt-setup-https          : auto(if any https sources): Enable APT https support\napt-setup                : auto: Setup APT sources and preferences\napt-update               : auto: Update APT\nccache                   : Enables use of ccache (for builds on the same instance) -- also needs the 'ccache' config block\neatmydata                : Try to minimize to-disk-syncs -- may improve speed\napt-no-check-valid-until : compat(< stretch): Disable APT's 'Check-Valid-Until' globally (only needed where this option can't be given as apt line option)\napt-binary-keys          : compat(<= jessie, <= yakketti): Convert APT keys to binary\napt-key-add              : compat(<= squeeze): Add APT keys via ``apt-key add``\nbash-devices             : compat(bash < 3.0-17 (2005)): Fixup /dev/fd|stdin|stdout|stderr. Needed for *building* bash only. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=327477\nschroot-shm              : compat(schroot < 1.6.10-3): Fixup /dev/shm mount. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=728096\nsun-java6-license        : compat(< 2011): Accept sun-java6 licence (debconf) so we can build-depend on it (sun-java is no longer part of Debian since 2011)\napt-clear                : compat,experimental: Try to clear any redundant APT data in ``/var/`` (can make APT work again if stuck)\napt-urold                : compat,experimental(< wheezy): Try some hard configs for urold releases (squeeze or older) to make APT work\n\n===============================================================================================\nAutopkgtest-Mode: <MODE>: Mode to control if a check should prevent package installation (for non-experimental suites).\n===============================================================================================\n'DISABLED' (Don't run check), 'IGNORE' (Run check but ignore results), 'ERRFAIL' (Run check and fail on errors), 'WARNFAIL' (Run check and fail on warnings)\n\n===============================================================================================\nInternal-APT-Priority: <PRIORITY>: Set APT priority for internal apt sources in builds.\n===============================================================================================\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\nHowever, some packages with incorrect build dependencies might\nbreak anyway, while they would work fine when just build against\nthe newest version available.\n\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\nExample: Always build against newer internal packages:\n---\nInternal-APT-Priority: 500\n---\n===============================================================================================\nDeb-Build-Options: ...: Set extra build options.\n===============================================================================================\nValues to add to environment variable ``DEB_BUILD_OPTIONS`` used when building packages. See\n\n* ``https://www.debian.org/doc/debian-policy/ch-source.html#debian-rules-and-deb-build-options`` and\n* ``https://lists.debian.org/debian-devel/2015/12/msg00262.html'>Debian dbgsym announcement``\n\nfor valid options. Value may be overridden by the resp. user upload option.\n\nOption ``noddebs`` is useful for Ubuntu distributions that for\nsome reason create their automated debug packages with file appendix\n'ddeb', as (see ``https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=730572``) reprepo fails on them.\n\nExample: Never build automatic debug packages (Ubuntu bionic, cosmic):\n---\nDeb-Build-Options: noddebs\n---\n===============================================================================================\nDeb-Build-Profiles: ...: Set extra build profiles.\n===============================================================================================\nContents of DEB_BUILD_PROFILES environment for building (see ``https://wiki.debian.org/BuildProfileSpec``).\nValue may be overridden by the resp. user upload option.\n"
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_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_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(*args, **kwargs)

Bases: Admin

inlines = (<class 'mini_buildd.models.distribution.ArchitectureOptionInline'>,)
filter_horizontal = ('extra_sources', 'components')
mbd_model

alias of Distribution

property media
mbd_is_active()
mbd_get_components()
mbd_get_archall_architectures()
mbd_get_mandatory_architectures()
mbd_get_reverse_dependencies()

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

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: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: 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
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.