Commit graph

59 commits

Author SHA1 Message Date
Stephen Seo 51afe3a2b0 Fix build log not having space after timestamp 2023-09-11 10:39:05 +09:00
Stephen Seo 0a449d168d Fix "datetime_in_local_time" usage 2023-09-11 10:29:10 +09:00
Stephen Seo 46216ebf37 Impl. using localtime timestamps if set in config 2023-09-10 21:25:46 +09:00
Stephen Seo ffc86897d9 Use RFC-3339/ISO-8601 compatible timestamps 2023-09-09 11:06:04 +09:00
Stephen Seo 84a6181c35 Log package "installation" output 2023-09-06 12:29:48 +09:00
Stephen Seo b7c2697f6a Apply "link_cargo_registry" in PKGBUILD ver. check 2023-07-26 10:49:27 +09:00
Stephen Seo c013e6b37b Add doc-comment for fn handle_output_stream 2023-06-26 13:18:19 +09:00
Stephen Seo ec48b1f419 Impl setting build to fail/continue on limit
If "error_on_build" is set to "true" in the config, then the build will
fail if the "log_limit" is reached.
2023-06-25 20:21:22 +09:00
Stephen Seo fd86336ee0 Enforce a "log_limit" to limit stdout/stderr logs
Default "log_limit" of 1 GiB for stdout/stderr from building packages
output.
2023-06-23 20:01:58 +09:00
Stephen Seo 024c41f4a6 Fix erronous use of "Rust only" flag 2023-06-23 12:03:57 +09:00
Stephen Seo cd6647d1a5 Impl "Rust only" sccache usage by config option 2023-06-23 11:45:16 +09:00
Stephen Seo 8a86babb8c Fix handling of "is_timed" when using log_print() 2023-06-07 13:37:40 +09:00
Stephen Seo 56ffb57fe3 Handle more (any) exceptions when building 2023-06-07 13:32:06 +09:00
Stephen Seo a453b8cd34 Impl timestamped logs 2023-06-07 12:25:39 +09:00
Stephen Seo 00561e0736 Minor tweak to info output when verifying/building 2023-03-21 11:11:29 +09:00
Stephen Seo 7c4fdfa307 Revert "Check pkg sources in chroot"
This reverts commit 8891a80087.
2023-03-18 13:25:20 +09:00
Stephen Seo 8891a80087 Check pkg sources in chroot 2023-03-17 16:09:20 +09:00
Stephen Seo c764942ed1 Fix integirty checking with gpg
No longer need to use the pacman hook as integrity checking is done by
the script before building.

Also, the temporary file created to test gpg signing will now be
created, signed, and removed in the user's `.local/share` directory.
2023-03-17 15:21:58 +09:00
Stephen Seo ed27852353 Bind .cargo/git dir with link_cargo_registry 2023-02-28 11:49:06 +09:00
Stephen Seo a3e5c88835 Add opt to link "$HOME/.cargo/registry" on build
Set "link_cargo_registry = true" in an "[[entry]]" to link
"$HOME/.cargo/registry" to the build's chroot.
2023-02-27 18:21:59 +09:00
Stephen Seo 2f506fc333 Add type annotations to ArchPkgVersion class 2023-02-04 17:08:49 +09:00
Stephen Seo c811080e57 Add some docstrings to the ArchPkgVersion class 2023-02-04 17:04:56 +09:00
Stephen Seo 913a3c2f5c Remove usage of python-packaging, minor fixes 2023-02-04 17:01:25 +09:00
Stephen Seo 9335a43360 Minor fix 2023-02-04 16:57:43 +09:00
Stephen Seo 9e5b5d4d54 Formatting with python black 2023-02-04 13:14:06 +09:00
Stephen Seo 74133fb363 More robust handling of non-digits in version
class ArchPkgVersion now handles non-digit version subsections by
splitting them based on them being digits or not.

ArchPkgVersion.versions is now a tuple after initialization.
2023-02-04 13:13:10 +09:00
Stephen Seo cdfb371ea9 Attempt to fix issues with packaging.version.parse
Defined a new class "ArchPkgVersion" to handle versions. May replace
usage of `packaging.version.parse(...)`.
2023-02-03 23:07:58 +09:00
Stephen Seo d2d2c8faf3 Add type hints to all functions 2022-09-18 14:16:34 +09:00
Stephen Seo b65812cc3b Fix typo: missing comma in tuple 2022-09-08 13:29:22 +09:00
Stephen Seo c8f0bd6f06 Refactorings related to subprocess
Use tuples instead of lists where possible.

Prepend commands with "/usr/bin/env".
2022-09-07 16:53:21 +09:00
Stephen Seo d51430cc10 Remove tempfile created when setting up sccache 2022-09-07 16:09:48 +09:00
Stephen Seo 006bafc4fb Replace roundabout way of setting up sccache 2022-09-07 15:28:09 +09:00
Stephen Seo 22203fee1f Add missing compiler program for sccache support 2022-09-07 15:06:05 +09:00
Stephen Seo 1b1c86034a Add missing compilers to use sccache with 2022-09-07 14:30:12 +09:00
Stephen Seo ad1f4f7ad5 Add documentation and do some refactoring 2022-09-06 12:13:16 +09:00
Stephen Seo 56e6ec3deb Refactor log_print, remove unnecessary "global"
Untested.
2022-09-05 21:55:29 +09:00
Stephen Seo 37b51e028b Update chroot before checking pkgs not after 2022-07-20 11:32:26 +09:00
Stephen Seo 7fda71cdf2 Fix PKGBUILD version updating to use makechrootpkg
Also did some refactoring.
2022-07-19 12:32:35 +09:00
Stephen Seo c6780b5678 Remove debug print 2022-07-05 12:06:16 +09:00
Stephen Seo c7b803c1ff Allow "going back" for "skip...up_to_date" pkgs 2022-07-05 11:56:29 +09:00
Stephen Seo 759d8d1f9d Formatting with python-black 2022-06-04 17:22:29 +09:00
Stephen Seo 3ff09fc7a9 Add path validation for "signingGPG" directory 2022-06-04 17:18:19 +09:00
Stephen Seo 0938cf934a Add some path validation/dir-creation 2022-06-04 17:15:52 +09:00
Stephen Seo 9574b51ac0 Fix typo 2022-06-04 17:01:47 +09:00
Stephen Seo 86216d4553 Ensure output pkgs dir exists on build 2022-06-04 16:58:18 +09:00
Stephen Seo 616f82e469 Fix remnants of old usage hardcoding to SCRIPT_DIR 2022-06-04 16:51:20 +09:00
Stephen Seo 69e9751be9 Fix invalid variable names when building 2022-06-04 16:26:27 +09:00
Stephen Seo 3ea3fbfb1c Fix invalid variable names 2022-06-04 16:23:07 +09:00
Stephen Seo 8d022beb8a Fixes to README.md and update.py 2022-06-04 16:15:41 +09:00
Stephen Seo 6e36ed0efc WIP Impl no hardcoding of clone dir
Also modified example_config.toml due to changed variable names and
added a few comments.
2022-06-04 16:14:37 +09:00