Commit graph

578 commits

Author SHA1 Message Date
InsanePrawn
809dfe6a7f packages/build: build_package(): install makedeps for _nodeps=true packages 2022-11-09 20:19:04 +01:00
InsanePrawn
a0c2061c8b pkgbuild.py: track makedepends both in depends and separate variable for _nodeps=true usage 2022-11-09 20:19:04 +01:00
InsanePrawn
dc2d826362 packages: clean up cmd_init 2022-11-09 20:19:04 +01:00
InsanePrawn
14b0a4a666 docs: templates/command.rst: remove unnecessary $cmd.cmd_$cmd import as all cmds are moved to $cmd.cli.cmd_$cmd now. 2022-11-09 20:19:04 +01:00
InsanePrawn
5d0d76fff2 cache: move cache.py to new module cache/cli.py for uniformity 2022-11-09 20:19:04 +01:00
InsanePrawn
50bcd0de63 image: create new module from {image,boot,fastboot,flash}.py 2022-11-09 20:19:04 +01:00
InsanePrawn
afca099ede net: make new module from {forwarding,ssh,telnet}.py 2022-11-09 20:19:04 +01:00
InsanePrawn
6fed749488 docs: Makefile: clean up .buildinfo and .doctrees 2022-11-09 20:19:04 +01:00
InsanePrawn
d1267d4082 chroot/cli: import get_profile_device() properly now that import loop is fixed 2022-11-09 20:19:04 +01:00
InsanePrawn
254d59959b config: add new __init__.py 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
777b3172d8 move packages/flavour.py to flavours/ 2022-11-09 20:19:04 +01:00
InsanePrawn
ed4226a505 chroot: add empty __init__.py 2022-11-09 20:19:04 +01:00
InsanePrawn
6569fee6a2 chroot: move __init__.py to cli.py 2022-11-09 20:19:04 +01:00
InsanePrawn
827550e972 docs: scan for $module.cli.cmd_$module 2022-11-09 20:19:04 +01:00
InsanePrawn
0e86de1f44 packages/flavours: rename cmd_flavours_list() to cmd_flavours(), add to main cli directly 2022-11-09 20:19:04 +01:00
InsanePrawn
6581e34087 move packages/{device,deviceinfo}.py to devices/ 2022-11-09 20:19:04 +01:00
InsanePrawn
b2112026d2 packages/build: skip packages that were already built this run (e.g. split packages) 2022-11-09 20:19:04 +01:00
InsanePrawn
ebd541e039 packages/build: exclude package names from dependencies, use pkgbase.names() 2022-11-09 20:19:04 +01:00
InsanePrawn
e91a8c796c packages/pkgbuild: parse version specs from dependencies, provides, etc.
handles e.g. "git>=1.0" properly
2022-11-09 20:19:04 +01:00
InsanePrawn
f16ea1684b constants: rename SRCINFO to .SRCINFO 2022-11-09 20:19:04 +01:00
InsanePrawn
9ae721d888 packages/pkgbuild: filter_pkgbuilds(): fix up to_match tracking 2022-11-09 20:19:04 +01:00
InsanePrawn
9fbb2dec46 chroot: remove initialize=False arg from Chroot() 2022-11-09 20:19:04 +01:00
InsanePrawn
3c315d7899 dataclass: specify _type_hints class variable, filter class variables from type hints. 2022-11-09 20:19:04 +01:00
InsanePrawn
746e42a4f6 chroot: clean up the copy_base instance var mess 2022-11-09 20:19:04 +01:00
InsanePrawn
8a31a98946 chroots: clean up get_*chroot() function signatures 2022-11-09 20:19:04 +01:00
InsanePrawn
07a8c3c79a chroot/abstract: clean up 2022-11-09 20:19:04 +01:00
InsanePrawn
4ab3d7ade1 fastboot.py: raise exceptions on failure to boot and flash instead of calling exit(1) 2022-11-09 20:19:04 +01:00
InsanePrawn
c4900cfd00 image.py: factor out and fix up dump_file_from_image() from dump_lk2nd() and friends 2022-11-09 20:19:04 +01:00
InsanePrawn
a3d60e768a constants: remove BOOT_STRATEGIES, read from deviceinfo 2022-11-09 20:19:04 +01:00
InsanePrawn
c50166051d wrapper: Wrapper.generate_wrapper_config(): no need to overwrite wrapper.type, we have the env var for that 2022-11-09 20:19:04 +01:00
InsanePrawn
fccd58c533 wrapper_su_helper.py: inject constants.WRAPPER_ENV_VAR into user env 2022-11-09 20:19:04 +01:00
InsanePrawn
96ead1ec21 wrapper: move env var name to constants.WRAPPER_ENV_VAR 2022-11-09 20:19:04 +01:00
InsanePrawn
c726541967 packages/cli: get rid of overzealus profile device enforcement so --arch can do its job. 2022-11-09 20:19:04 +01:00
InsanePrawn
a5a2668af5 integration_tests: default KBS branch name from CI env vars if kbs_branch comes back empty 2022-11-09 20:19:04 +01:00
InsanePrawn
024075fabd utils.git*(): use --git-dir=./.git to avoid "unsafe directory" issues 2022-11-09 20:19:04 +01:00
InsanePrawn
1275557d71 utils: git_get_branch(): check returncode 2022-11-09 20:19:04 +01:00
InsanePrawn
0c70d6ec59 integration_tests.test_packages_update(): use switch_branch=True and check if branch successfully switched 2022-11-09 20:19:04 +01:00
InsanePrawn
4fc45bf098 packages/cli: cmd_clean(): reword output 2022-11-09 20:19:04 +01:00
InsanePrawn
c12b702383 packages: fix up cmd_update(), {init,clone}_pkgbuilds() 2022-11-09 20:19:04 +01:00
InsanePrawn
d5c5d19c94 .gitlab-ci.yml: add integration_tests.py to pytest 2022-11-09 20:19:04 +01:00
InsanePrawn
c027afd58a add integration_tests.py 2022-11-09 20:19:04 +01:00
InsanePrawn
daff20302a utils: create git_get_branch() from packages.cli 2022-11-09 20:19:04 +01:00
InsanePrawn
f395ef231b packages: clone_pkgbuilds(): use git remote update before git switch 2022-11-09 20:19:04 +01:00
InsanePrawn
56dbd3966c wrapper.is_wrapped(): handle wrapper_type = 'none' 2022-11-09 20:19:04 +01:00
InsanePrawn
b551c89a1c packages: add tests for flavour.py 2022-11-09 20:19:04 +01:00
InsanePrawn
dfb305b362 packages/cli: clean up cmd_list() 2022-11-09 20:19:04 +01:00
InsanePrawn
4320c28c1b packages/cli: clean up wrapping 2022-11-09 20:19:04 +01:00
InsanePrawn
91041ab06d packages/build: build_enable_qemu_binfmt(): don't install packages on unwrapped systems 2022-11-09 20:19:04 +01:00
InsanePrawn
6b4bb27609 packages/pkgbuild: discover_pkgbuilds(): check for makepkg or wrap 2022-11-09 20:19:04 +01:00