🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-07 12:19:14 | PHP 8.2.32
📂
/ (Root)
/
usr
/
lib
/
python3.6
/
site-packages
/
cloudinit
/
config
/
__pycache__
📍 /usr/lib/python3.6/site-packages/cloudinit/config/__pycache__
🔄 Refresh
✏️
Editing: cc_zypper_add_repo.cpython-36.opt-1.pyc
Read Only
3 \�me] � @ s� U d Z ddlZddlZddlmZ ddlZddlmZ ddlm Z ddl mZ ddlm Z mZ ddlmZ d d ddd ddgZdZdddeeed�gedgd�Ze ee�Z eje�Zdd� Zdd� Zdd� Zdd� Zdd � Zeee edd!�d"d#�ZdS )$z6zypper_add_repo: Add zypper repositories to the system� N)�dedent)�util)�Cloud)�Config)� MetaSchema�get_meta_doc)� PER_ALWAYSZopensusezopensuse-microoszopensuse-tumbleweedz opensuse-leapZsle_hpcz sle-microZslesa� Zypper behavior can be configured using the ``config`` key, which will modify ``/etc/zypp/zypp.conf``. The configuration writer will only append the provided configuration options to the configuration file. Any duplicate options will be resolved by the way the zypp.conf INI file is parsed. .. note:: Setting ``configdir`` is not supported and will be skipped. The ``repos`` key may be used to add repositories to the system. Beyond the required ``id`` and ``baseurl`` attributions, no validation is performed on the ``repos`` entries. It is assumed the user is familiar with the zypper repository file format. This configuration is also applicable for systems with transactional-updates. Zcc_zypper_add_repozZypper Add Repoz5Configure zypper behavior and add zypper repositoriesa� zypper: repos: - id: opensuse-oss name: os-oss baseurl: http://dl.opensuse.org/dist/leap/v/repo/oss/ enabled: 1 autorefresh: 1 - id: opensuse-oss-update name: os-oss-up baseurl: http://dl.opensuse.org/dist/leap/v/update # any setting per # https://en.opensuse.org/openSUSE:Standards_RepoInfo # enable and autorefresh are on by default config: reposdir: /etc/zypp/repos.dir servicesdir: /etc/zypp/services.d download.use_deltarpm: true # any setting in /etc/zypp/zypp.conf �zypper)�id�name�title�description�distrosZexamplesZ frequencyZactivate_by_schema_keysc C s | j dd�} | S )N� �_)�replace)�repo_id� r �(/usr/lib/python3.6/cc_zypper_add_repo.py�_canonicalize_idT s r c C sN t | t�r| rdS dS t | ttf�r8djdd� | D ��S t | t�sJt| �S | S )N� r z c S s g | ]}t |��qS r )�_format_repo_value)�.0�vr r r � <listcomp>^ s z&_format_repo_value.<locals>.<listcomp>)� isinstance�bool�list�tuple�join�str)�valr r r r Y s r c C sH t j� }i || <