Commit graph

11 commits

Author SHA1 Message Date
InsanePrawn
82a87e7ea9 implement explicit Optional type hints for =None parameters
Thanks https://github.com/hauntsaninja/no_implicit_optional
2022-11-09 20:19:04 +01:00
InsanePrawn
33f4a81981 config: move code from __init__.py into cli.py 2022-11-09 20:19:04 +01:00
InsanePrawn
1d0a97560b chroot.mount_pacman_cache(): use /var/cache/pacman/pkg to avoid problems while pacstrapping, adjust pacman.conf generator 2022-11-09 20:19:04 +01:00
InsanePrawn
8ad18c00a6 global: refactor to use config.{file,runtime}.$member instead of config.file["$member"] 2022-11-09 19:39:59 +01:00
InsanePrawn
3952892029 generator.generate_pacman_conf_body(): add in_chroot=False param to use config.get_path('pacman') if necessary 2022-08-23 21:41:41 +02:00
InsanePrawn
7a324555da Type annotate all the things! 2022-02-18 06:32:04 +01:00
InsanePrawn
2ece1f288c move pacman.conf body to generator.py, fix check_space for build chroots
with check_space=True, build chroots fail to pacman -S anything, because their rootfs is not a mountpoint,
hence pacman's space calculations will fail and return not enough free space.
We do want these space checks when pacstrapping device rootfilesystems though.
2022-02-17 02:32:50 +01:00
InsanePrawn
050f73c90c generator.py: use constants.Arch type 2022-02-06 19:22:53 +01:00
InsanePrawn
bc8904c1f1 WIP: make packages.py work moar 2021-10-25 01:51:03 +02:00
InsanePrawn
1a6979d9cb makepkg.conf: fix HOSTSPEC used when _not_ setting up cross-compilation
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-10-12 02:17:32 +02:00
InsanePrawn
f95d16c996 fix crosscompile -> add makepkg_cross_{arch}.conf generation
TODO: use everywhere
2021-10-04 13:34:37 +02:00