[ Avaa Bypassed ]




Upload:

Command:

www-data@18.218.241.211: ~ $
import os
from configparser import ConfigParser

PIP_CONFIG_FILE = "/etc/pip.conf"


def update_pip_conf(pip_config_dict):
    """
    Update pip.conf file on /etc/ with the required configurations
    for enabling a service.

    :param pip_config_dict:
        A dictionaty representing a valid pip config
    """
    new_conf_parser = ConfigParser()
    new_conf_parser.read_dict(pip_config_dict)

    if os.path.exists(PIP_CONFIG_FILE):
        existing_conf_parser = ConfigParser()
        with open(PIP_CONFIG_FILE, "r") as f:
            existing_conf_parser.read_file(f)

        existing_conf_parser.update(new_conf_parser)
        new_conf_parser = existing_conf_parser

    with open(PIP_CONFIG_FILE, "w") as f:
        new_conf_parser.write(f)

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
api Folder 0755
clouds Folder 0755
daemon Folder 0755
entitlements Folder 0755
files Folder 0755
jobs Folder 0755
__init__.py File 0 B 0644
actions.py File 8.19 KB 0644
apt.py File 25.74 KB 0644
apt_news.py File 6.33 KB 0644
cli.py File 64.22 KB 0644
config.py File 24.5 KB 0644
contract.py File 27.47 KB 0644
contract_data_types.py File 9.38 KB 0644
data_types.py File 10.3 KB 0644
defaults.py File 2.46 KB 0644
event_logger.py File 7.75 KB 0644
exceptions.py File 13.56 KB 0644
gpg.py File 813 B 0644
livepatch.py File 11.03 KB 0644
lock.py File 3.58 KB 0644
log.py File 1.89 KB 0644
messages.py File 38.47 KB 0644
pip.py File 756 B 0644
security.py File 48.75 KB 0644
security_status.py File 24.19 KB 0644
serviceclient.py File 6.22 KB 0644
snap.py File 4.06 KB 0644
status.py File 25.73 KB 0644
system.py File 17.09 KB 0644
types.py File 308 B 0644
util.py File 20.3 KB 0644
version.py File 2.81 KB 0644
yaml.py File 642 B 0644