Commit graph

52 commits

Author SHA1 Message Date
InsanePrawn
5cb747aa26 packages and image: wrap more upfront on missing binaries 2022-11-09 19:39:59 +01:00
InsanePrawn
cdc803031e packages.filter_packages(): only filter by arch if arch is not None 2022-11-09 19:39:59 +01:00
InsanePrawn
8fc33c85cf packages.cmd_sideload(): fix escape of --overwrite=* 2022-11-09 19:39:59 +01:00
InsanePrawn
32f5fe643f packages: respect package arches before and during building 2022-11-09 19:39:59 +01:00
InsanePrawn
a778f0786e packages.check_package_version_built(): use Pkgbuild.get_filename() instead of running makepkg --packagelist 2022-11-09 19:39:59 +01:00
InsanePrawn
f2ccf06c5b pkgbuild: add get_filename(arch) 2022-11-09 19:39:59 +01:00
InsanePrawn
fb4a12c464 packages.filter_packages(): optionally check package arch 2022-11-09 19:39:59 +01:00
InsanePrawn
bb14c4d779 packages: use user 'kupfer' in chroots for building 2022-11-09 19:39:59 +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
3d6aa98c21 packages: circumvent git dubious ownership errors in pkgbuilds.git due to chrootery 2022-11-02 00:38:18 +01:00
InsanePrawn
d03cb39358 Pkgbuild: add refresh_sources() 2022-11-02 00:38:18 +01:00
InsanePrawn
558993b89e packages/pkgbuild: cache parsed pkgbuilds by path, add get_pkgbuild_by_path(), Pkgbuild.update(pkgb) 2022-11-02 00:38:18 +01:00
InsanePrawn
2db8a0a0cb packages: cleanup unnecessary bits 2022-08-25 13:52:35 +02:00
InsanePrawn
5a794ba3dd packages: get_makepkg_env(): actually return env... 2022-08-23 17:38:58 +02:00
InsanePrawn
39be2b2fb6 packages/test_device: add test for initialise_pkgbuilds_dir fixture 2022-08-20 04:51:25 +02:00
InsanePrawn
f5e3fa46ad packages/ and image.py: less wrapping, remove hardcoded 'aarch64' where possible 2022-08-20 04:32:33 +02:00
InsanePrawn
8a7f78261f packages: add device.py and initial tests 2022-08-20 04:32:33 +02:00
InsanePrawn
1c6689f710 packages.cmd_sideload(): fix string escape '\*' -> '\\*' 2022-08-19 17:18:18 +02:00
InsanePrawn
e001d107c2 move packages.{clone_pkbuilds(),discover_packages(),init_pkgbuilds()} to packages.pkgbuild
also rename discover_packages() to discover_pkgbuilds()
2022-08-19 17:13:03 +02:00
InsanePrawn
5baaaaa180 packages.discover_packages(): clean up caching 2022-08-19 16:55:53 +02:00
InsanePrawn
7d9f1b9ed8 pkgbuild.parse_pkgbuild() make config parameter optional 2022-08-19 16:55:17 +02:00
InsanePrawn
859b08df6a packages.build_enable_qemu(): fixup for usage without wrapper, drop buildchroot requirement 2022-08-16 03:38:33 +02:00
InsanePrawn
dbf65b44df parse_pkgbuild(): update basepkg version before copying to subpkgs 2022-08-16 02:35:40 +02:00
InsanePrawn
707c61f026 replace os.makedirs with exec.{root_,}makedir where applicable 2022-08-16 02:35:40 +02:00
InsanePrawn
cc29b60f9f use exec.file.{root_write_file,remove_file} where appropiate 2022-08-16 02:35:40 +02:00
InsanePrawn
879fd113f0 exec: migrate exec.py to exec/cmd.py 2022-08-15 17:48:42 +02:00
InsanePrawn
c562271006 image.py: use exec.run_root_cmd() 2022-08-15 17:48:42 +02:00
InsanePrawn
fdf03e2b97 packages: migrate to exec.run_(root_)cmd() 2022-08-15 06:41:59 +02:00
InsanePrawn
7fcd68ced9 packages.discover_packages(): don't use chroot for running makepkg --printsrcinfo, pass config, cache results 2022-08-15 06:17:26 +02:00
InsanePrawn
e3ad2edc69 packages/__init__.py: cleanups, mostly logging 2022-08-14 04:17:46 +02:00
InsanePrawn
d70805f3a6 pkgbuild.py: add pkgbuild.arches parsing, add SubPkgbuild class 2022-08-14 04:14:47 +02:00
InsanePrawn
2d71b1f3cc package.setup_build_chroot(): demote "Initializing build chroot" message to debug 2022-08-13 19:48:16 +02:00
InsanePrawn
8e8713a9d3 packages.filter_packages_by_path(): also accept plain package names, rename function 2022-08-11 07:53:09 +02:00
InsanePrawn
7a074d1c11 packages: fix up cmd_sideload(), use get_kupfer_local() to find packages. 2022-08-11 07:53:09 +02:00
InsanePrawn
97c1bd1f74 {image,packages}.cmd_build(): document the HTTPS download behaviour
and minor cleanups for cli params
2022-08-10 01:38:45 +02:00
InsanePrawn
80f72b2711 packages: make sure that repos are initialized before building or downloading pkgs 2022-08-09 00:09:26 +02:00
InsanePrawn
6a7a0d6d17 pkgbuild.py: fix subpackages being swallowed 2022-08-08 23:52:55 +02:00
InsanePrawn
06b8536915 fixups: properly propagate distro.scan and try_download 2022-08-08 22:58:08 +02:00
InsanePrawn
ea7df92b7f pkgdownload: fixups and typechecks 2022-08-08 16:56:46 +02:00
InsanePrawn
657ada4c73 packages: finish pkg downloads: add --no-download flag, wire it up 2022-08-08 16:49:58 +02:00
InsanePrawn
07c8e178fb packages: add downloading packages 2022-08-08 16:39:41 +02:00
InsanePrawn
d249504151 packages.get_unbuilt_package_levels(): optimize if statement checking whether packages need to be [re]built 2022-08-08 16:38:54 +02:00
InsanePrawn
6bff3c3c83 get_unbuilt_package_levels: don't write dependants into the packages set 2022-08-08 14:26:22 +02:00
InsanePrawn
1019e8d30c packages cmd_build(): make --rebuild-dependants add dependants to the dependency chain 2022-08-08 02:53:52 +02:00
InsanePrawn
cec145232e packages cmd_build: add --rebuild-dependants, default to False 2022-08-08 02:49:24 +02:00
InsanePrawn
7bb0d9a2e6 packages build: copy built any-arch packages over to other repos 2022-08-08 02:49:16 +02:00
InsanePrawn
e28239454a packages: cmd_check: extend set of characters that justify quoting 2022-06-08 04:02:05 +02:00
InsanePrawn
6000679817 image: cmd_build(): add --[no-]local-repos to build images from https repos only 2022-05-08 18:05:15 +02:00
InsanePrawn
42a82a10e8 packages: fix up cmd_clean() 2022-05-07 13:49:39 +02:00
InsanePrawn
b13b00e85b get_makepkg_env(): filter out CI variables 2022-05-07 05:32:25 +02:00