Commit graph

733 commits

Author SHA1 Message Date
InsanePrawn
d2d9cb6c7c wrapper: add Wrapper.argv_override 2023-04-16 03:37:22 +02:00
InsanePrawn
ec0e430c00 config/cli: save main config body separately from profiles to support flavour and device listing 2023-04-16 03:37:22 +02:00
InsanePrawn
954592fc62 config/cli: warn when saving config in container 2023-04-16 03:37:22 +02:00
InsanePrawn
e07306d5c4 wrapper: add needs_wrap(), typehint return values 2023-04-16 03:37:22 +02:00
InsanePrawn
dfd191060a config/state: remove field_name from missing device/flavour hint as it gets used as the profile name 2023-04-16 03:37:22 +02:00
InsanePrawn
13aa258794 distro: use repo_config properly 2023-04-16 03:31:35 +02:00
InsanePrawn
572142bf0b dataclass: replace print spam with decent logging 2023-04-16 03:28:49 +02:00
InsanePrawn
28a5400d48 distro/distro: get_base_distro(): add unsiged=True to keep old default behaviour 2023-03-27 21:27:10 +02:00
InsanePrawn
78f9f31e7a repo_config: add default remote_url=None to BaseDistro 2023-03-27 20:03:47 +02:00
InsanePrawn
9766c70523 fixup! requirements.txt: add yaml 2023-03-27 19:49:14 +02:00
InsanePrawn
49c5ec7fd7 repo_config: assert config non-null 2023-03-27 19:47:20 +02:00
InsanePrawn
3ed0721d52 formatting cleanups 2023-03-27 19:45:35 +02:00
InsanePrawn
8ea1ae98be repo_config; changed detection fixes 2023-03-27 19:41:47 +02:00
InsanePrawn
7fa6f80305 requirements.txt: add yaml 2023-03-27 19:40:46 +02:00
InsanePrawn
b9e044f932 constants: rename 'distro.yaml' to 'distro.yml' 2023-03-27 18:59:55 +02:00
InsanePrawn
f313334a27 distro/repo_config: use correct default remote url for base distros 2023-03-27 18:58:29 +02:00
InsanePrawn
e400361dc1 distro/repo_config: remove unnecessary name attribute from RepoConfig 2023-03-27 18:58:03 +02:00
InsanePrawn
e7fbcb6fbe distro: bugfixes: use get_kupfer_url() in the right place to resolve branch placeholder, default some values 2023-03-27 18:48:23 +02:00
InsanePrawn
f3c53e449b constants: rename %branch% URL marker to %kupfer_branch% and give it its own constant 2023-03-27 18:48:04 +02:00
InsanePrawn
4517201118 repo_config: switch to .yaml 2023-03-27 09:23:16 +02:00
InsanePrawn
d77adf9b21 packages/cli: cmd_init(): also initialise binary repos 2023-03-27 09:19:08 +02:00
InsanePrawn
21c5992bde packages/build: improve packages init logging 2023-03-27 09:19:08 +02:00
InsanePrawn
ff1c31e157 TEMP: WIP: add repo_config
TEMP cause it spams a bunch of prints in dataclass handling
2023-03-27 09:18:57 +02:00
InsanePrawn
72f4d4948e TEMP: override DataClass.ToDict() 2023-03-21 20:53:17 +01:00
InsanePrawn
53ef22d6b8 distro/repo.py: fix accidental global variable 2023-03-21 20:52:54 +01:00
InsanePrawn
2ad4690c0a {devices,flavours}/cli: add --output-file for json dumping 2023-03-17 16:34:20 +01:00
InsanePrawn
161e14a438 distro/repo: scan(): add allow_failure parameter 2023-03-17 16:34:20 +01:00
InsanePrawn
066b6abaaa distro/distro: add scan parameter to get_base_distro() 2023-03-17 16:34:20 +01:00
InsanePrawn
9f5bafab57 distro/package: fix DESC parser 2023-03-17 16:34:20 +01:00
InsanePrawn
272d55b735 devices/cli: add --force-parse-deviceinfo and --download-packages 2023-03-17 16:34:20 +01:00
InsanePrawn
af1d8d1737 flavours/cli: clean up json. (add architectures, flatten flavour_info, etc.) 2023-03-17 16:34:20 +01:00
InsanePrawn
78874a15e6 packages/cli: linter fixes 2023-03-17 16:34:20 +01:00
InsanePrawn
f38fb798bc devices: don't pass config to parse_pkgbuild*() unnecessarily, that's only for multiprocessing 2023-03-17 16:34:20 +01:00
InsanePrawn
de7b597518 logger: add --quiet flag to disable non-error logging 2023-03-17 16:34:20 +01:00
InsanePrawn
f140fa36ce flavours/cli: colorise output, add -j/--json arg 2023-03-17 16:34:20 +01:00
InsanePrawn
69c73e41dd devices/cli: colorize output 2023-03-17 16:34:20 +01:00
InsanePrawn
e269841038 utils: add colors_supported() and color_str() for terminal colors 2023-03-17 16:34:20 +01:00
InsanePrawn
932e739255 devices/cli: add --json parameter 2023-03-17 16:34:20 +01:00
InsanePrawn
63156776a2 devices/cli: make device list way more readable, add package name and path, mark currently selected 2023-03-17 16:34:20 +01:00
InsanePrawn
5edfac42ce main.py: default colors to isatty(stdout) if force_colors is None 2023-03-17 16:34:20 +01:00
InsanePrawn
00613096d5 config/state: add config.runtime.colors, fill in main.py 2023-03-17 16:34:20 +01:00
InsanePrawn
c4797c709f logger: disable raising exceptions, e.g. when stdout is closed 2023-03-17 16:34:20 +01:00
InsanePrawn
28c68418a6 packages/build: get_unbuilt_package_levels(): use force=True while updating pkgbar 2023-03-17 16:34:20 +01:00
InsanePrawn
cc1b4b3ee2 packages/build: redirect output from stderr to stdout 2023-03-17 16:34:20 +01:00
InsanePrawn
ff3b5e70dd progressbar: add ellipsize() 2023-03-17 16:34:20 +01:00
InsanePrawn
ac25266a00 packages: build: use progress bars for get_unbuilt_pkg_levels() and build_packages() 2023-03-17 16:34:20 +01:00
InsanePrawn
c99463a0f6 progressbar: new module based on enlighten 2023-03-17 16:34:20 +01:00
InsanePrawn
6d6f582b71 exec/cmd: fix up stderr and stdout handling, fix capture_output overwriting env 2023-03-17 16:34:20 +01:00
InsanePrawn
785e41f8b7 logger: add --force-colors/--no-colors cli flag 2023-03-17 16:34:20 +01:00
InsanePrawn
4d03f238bb CI: fix for docker buildx 2023-03-17 16:26:53 +01:00