bundlewrap/bundles/pacman/items.py
Franziska Kunsmann 20f4c182ad
All checks were successful
bundlewrap/pipeline/head This commit looks good
bundles/pacman: ensure we have run-parts
2021-06-30 06:22:06 +02:00

85 lines
1.6 KiB
Python

from bundlewrap.exceptions import BundleError
if not node.os == 'arch':
raise BundleError(f'{node.name}: bundle:pacman requires arch linux')
# This is more targeted to GUI systems. This is intentional.
pkg_pacman = {
'at': {},
'autoconf': {},
'automake': {},
'binutils': {},
'bison': {},
'bzip2': {},
'curl': {},
'dialog': {},
'diffutils': {},
'dnsutils': {},
'fakeroot': {},
'file': {},
'findutils': {},
'flex': {},
'fwupd': {},
'gawk': {},
'gcc': {},
'gettext': {},
'git': {},
'gnu-netcat': {},
'grep': {},
'groff': {},
'gzip': {},
'htop': {},
'ldns': {},
'less': {},
'libtool': {},
'linux': {},
'logrotate': {},
'lsof': {},
'm4': {},
'mailutils': {},
'make': {},
'moreutils': {},
'mtr': {},
'ncdu': {},
'nmap': {},
'patch': {},
'pkgconf': {},
'python': {},
'python-setuptools': {
'needed_by': {
'pkg_pip:',
},
},
'python-pip': {
'needed_by': {
'pkg_pip:',
},
},
'python-virtualenv': {},
'rsync': {},
'run-parts': {},
'sed': {},
'tar': {},
'texinfo': {},
'tmux': {},
'tree': {},
'unzip': {},
'vim': {},
'wget': {},
'which': {},
'whois': {},
'zip': {},
}
if node.metadata.get('pacman/install_gui', False):
pkg_pacman = {
'fish': {},
'netctl': {},
'rfkill': {},
'wpa_supplicant': {},
'wpa_actiond': {},
}
for pkg, config in node.metadata.get('pacman/packages', {}).items():
pkg_pacman[pkg] = config