HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/pkg/__pycache__/deb.cpython-310.pyc
o

�N�gG�@sdZdd�Zdd�ZdS)z0
Common functions for working with deb packages
cCsDt|t�r
dd�|D�}nt|t�st|�g}n|g}d�|���S)z�
    Given a list of comments, or a comment submitted as a string, return a
    single line of text containing all of the comments.
    cSs"g|]
}t|t�r|nt|��qS�)�
isinstance�str)�.0�crr�F/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/pkg/deb.py�
<listcomp>s"z$combine_comments.<locals>.<listcomp>� )r�listr�join�strip)Zcommentsrrr�combine_commentss

rcsH|��}t|�D]\}�t�fdd�dD��r��d�||<qd�|�S)zE
    Remove the trailing slash from the URI in a repo definition
    c3s�|]}��|�VqdS)N)�
startswith)r�x��valrr�	<genexpr>s�zstrip_uri.<locals>.<genexpr>)zhttp://zhttps://zftp://�/r)�split�	enumerate�any�rstripr
)ZrepoZsplits�idxrrr�	strip_uris�
rN)�__doc__rrrrrr�<module>s