Commit graph

46 commits

Author SHA1 Message Date
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
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
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
53ef22d6b8 distro/repo.py: fix accidental global variable 2023-03-21 20:52:54 +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
61a9b53c5f distro/distro: add get_kupfer_url() for resolving the repo branch 2022-12-08 17:51:37 +01:00
InsanePrawn
c36087308f distro/package: add parsed _desc to package 2022-12-07 16:56:35 +01:00
InsanePrawn
3a44cb6d42 distro/package: BinaryPackage: Track Arch 2022-12-07 15:25:01 +01:00
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
4154b2dfe3 distro.package: add Package.acquire() 2022-11-09 20:11:19 +01:00
InsanePrawn
bf420a73be distro: refactor BinaryPackage, Repo and Distro into generics for Local and Remote 2022-11-09 20:11:19 +01:00
InsanePrawn
dbe3dc91a3 distro/package: refactor class PackageInfo into class BinaryPackage(PackageInfo) 2022-11-09 19:39:59 +01:00
InsanePrawn
c16147ef0c distro.package.parse_desc(): rename resolved_url param to resolved_repo_url for clarity 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
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
916be09c61 distro/repo.py: add Repo.__repr__() 2022-08-16 03:40:28 +02:00
InsanePrawn
bd5415de47 distro/package.parse_desc: add filename to resolved_url 2022-08-11 07:24:48 +02:00
InsanePrawn
ec1e5fa300 distro.py: cache get_kupfer_{local,https}() results 2022-08-11 07:24:48 +02:00
InsanePrawn
1a58b136e3 distro: add Distro.{scan,is_scanned}() 2022-08-11 07:24:48 +02:00
InsanePrawn
5003225409 distro: clean up merging dicts in distro.get_packages() 2022-08-10 01:38:45 +02:00
InsanePrawn
85b4463da4 repo.py: remove unnecessary config import 2022-08-10 01:38:45 +02:00
InsanePrawn
06b8536915 fixups: properly propagate distro.scan and try_download 2022-08-08 22:58:08 +02:00
InsanePrawn
597390c1e6 distro: fixup package repo downloading and scanning 2022-08-08 22:13:49 +02:00
InsanePrawn
ea7df92b7f pkgdownload: fixups and typechecks 2022-08-08 16:56:46 +02:00
InsanePrawn
0d05d3ca26 distro/repo: add repo.resolve_url(self) instance method 2022-08-08 16:35:47 +02:00
InsanePrawn
cb95846fb5 distro: put extra_repos before core repos in pacman.conf 2022-05-08 18:05:15 +02:00
InsanePrawn
232254948d config: add pacman.repo_branch, adjust KUPFER_HTTPS url to include $arch and use repo_branch 2022-05-08 18:05:09 +02:00
InsanePrawn
08d7ce8862 move Pkgbuild class to packages/ 2022-02-20 20:21:05 +01:00
InsanePrawn
434ddfde8f small cleanups 2022-02-20 19:23:28 +01:00
InsanePrawn
7a324555da Type annotate all the things! 2022-02-18 06:32:04 +01:00
InsanePrawn
a7da033845 distro: fix type annotations to please mypy 2022-02-18 03:30:21 +01:00
InsanePrawn
795be0bf2a pkgbuild: add Pkgbase class for split-package parents, fix type annotations 2022-02-17 19:34:58 +01:00
InsanePrawn
3fbda2e089 Remove leftovers, please the formatter. 2022-02-17 06:42:15 +01:00
InsanePrawn
e72a7f31bb pkgbuild: also parse replaces 2022-02-17 06:08:31 +01:00
InsanePrawn
0c3592065c distro: refactor into multiple files, packages: factor out distro.Pkgbuild class 2022-02-17 05:55:35 +01:00
InsanePrawn
7359b447e7 distro: refactor Repo- and PackageInfo into separate files 2022-02-17 03:11:33 +01:00
InsanePrawn
94b80b4fca distro: move to own subfolder 2022-02-17 03:00:21 +01:00