Skip to content

Commit 6e6a7d9

Browse files
committed
WIP
1 parent f7f1880 commit 6e6a7d9

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

pulpcore/app/models/publication.py

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -567,47 +567,6 @@ class Meta:
567567
)
568568

569569

570-
class BaseDistribution(MasterModel):
571-
"""
572-
A distribution defines how a publication is distributed by the Content App.
573-
574-
This abstract model can be used by plugin writers to create concrete distributions that are
575-
stored in separate tables from the Distributions provided by pulpcore.
576-
577-
The `name` must be unique.
578-
579-
The ``base_path`` must have no overlapping components. So if a Distribution with ``base_path``
580-
of ``a/path/foo`` existed, you could not make a second Distribution with a ``base_path`` of
581-
``a/path`` or ``a`` because both are subpaths of ``a/path/foo``.
582-
583-
Note:
584-
This class is no longer supported and cannot be removed from Pulp 3 due to possible
585-
problems with old migrations for plugins. Until the migrations are squashed, this class
586-
should be preserved.
587-
588-
Fields:
589-
name (models.TextField): The name of the distribution. Examples: "rawhide" and "stable".
590-
base_path (models.TextField): The base (relative) path component of the published url.
591-
592-
Relations:
593-
content_guard (models.ForeignKey): An optional content-guard.
594-
remote (models.ForeignKey): A remote that the content app can use to find content not
595-
yet stored in Pulp.
596-
"""
597-
598-
name = models.TextField(db_index=True, unique=True)
599-
base_path = models.TextField(unique=True)
600-
601-
content_guard = models.ForeignKey(ContentGuard, null=True, on_delete=models.SET_NULL)
602-
remote = models.ForeignKey(Remote, null=True, on_delete=models.SET_NULL)
603-
604-
def __init__(self, *args, **kwargs):
605-
raise Exception(
606-
"BaseDistribution is no longer supported. "
607-
"Please use pulpcore.plugin.models.Distribution instead."
608-
)
609-
610-
611570
class Distribution(MasterModel):
612571
"""
613572
A Distribution defines how the Content App distributes a publication or repository_version.

0 commit comments

Comments
 (0)