Commit graph

134 commits

Author SHA1 Message Date
Stephen Seo dc02848b2e Append "--include-sigs" to "repo-add" command
The default seems to have changed to not include the signatures. This
flag re-enables adding package signatures to the package database.
2024-05-16 15:37:07 +09:00
Stephen Seo b6301b6bd2 Fix unescaped backslash in string
String requires literal backslashes in it for bash-expansion to work
properly. The expansion in question removes "/usr/local/bin" from "PATH"
when sccache is invoked to prevent unwanted recursion.
2024-04-28 19:51:42 +09:00
Stephen Seo b9b0cf3399 Refactor pkg state printing 2024-04-25 16:43:35 +09:00
Stephen Seo f2ca2a047d Fix case where aur pkg-pull/get-remote-info fails
Previous implementation would halt the script on this kind of failure.
New implementation now continues to the next aur pkg when this failure
occurs.
2024-04-23 15:52:46 +09:00
Stephen Seo 38c42cd7b4 Update README.md
Improve documentation in README.md.
2024-04-09 14:48:16 +09:00
Stephen Seo 3fe21d176a Ensure only one of s/ccache in "other_deps"
When sccache/ccache is enabled for a pkg, ensure that "other_deps" for
that package has at most 1 of sccache/ccache.
2024-04-08 15:19:52 +09:00
Stephen Seo eb8fa7805a Update README.md
Note about not having ccache/sccache preinstalled in chroot.
2024-04-08 12:17:42 +09:00
Stephen Seo 71cf85f1cd Add notice when dependency prefetch is successful 2024-04-08 12:11:31 +09:00
Stephen Seo 3cc1a0b583 Fix prefetch_dependencies fn
Fixed invalid log of packages to prefetch (tried to read invalid
variable name that changed from "pkg" to "pkgs").
2024-04-08 12:00:08 +09:00
Stephen Seo 99f3d915c6 Fixes
Change "prefetch_dependency" to "prefetch_dependnecies" and fetch all
"other_deps" at the same time.

Fix some erronous type hints.
2024-04-08 11:57:09 +09:00
Stephen Seo a040785bd6 Install s/ccache only when needed, note in README
It is better to not preinstall sccache/ccache in the chroot as mentioned
in the README.
2024-04-08 11:12:13 +09:00
Stephen Seo 0b91176586 Prefetch "other_deps" with "pacman -Sw" 2024-04-08 11:02:36 +09:00
Stephen Seo d7f5eb1fe5 Update README.md
Add note about security.
2024-04-04 11:30:19 +09:00
Stephen Seo 6324df6f9b Fix README.md 2024-04-02 15:03:58 +09:00
Stephen Seo 9b65a218ef Update README.md
Add note about "install scripts".

Fix typo.
2024-04-02 14:38:36 +09:00
Stephen Seo fc46eb647a Update LICENSE year 2024-04-02 14:28:56 +09:00
Stephen Seo 53ceb9b43b Don't generate user chroot if already once 2024-04-02 14:09:14 +09:00
Stephen Seo ad793a1a21 Improve install script rechecking
Rechecking the install script no longer re-prepares the user chroot.
2024-04-02 13:30:26 +09:00
Stephen Seo 487b9632aa Impl. install script "rechecking" option 2024-04-02 13:20:57 +09:00
Stephen Seo 3960bb187e Add checking of install script
PKGBUILDs may have a "install=<some_file>" line which should be checked,
as the install script is used for hooks during installation.

This commit adds checking of such install scripts (only if the package's
PKGBUILD actually has a "install=<some_file>" defined).
2024-04-02 13:07:45 +09:00
Stephen Seo 130789dba8 Fix GLOBAL_LOG_FILE not being set by config 2023-11-21 11:38:53 +09:00
Stephen Seo 9ac2a1e934 Impl. checking PKGBUILD versions from in chroot 2023-11-18 19:37:10 +09:00
Stephen Seo 106adcd27b Fix type hint for tuple of strings 2023-11-18 13:41:58 +09:00
Stephen Seo 6fde09ea71 Fix build_print_pkg_info() depending on global 2023-11-17 20:58:49 +09:00
Stephen Seo 4fd128e27b Fix confirm_result() depending on global 2023-11-17 20:55:17 +09:00
Stephen Seo 2b2a3c0dc3 Fix get_pkg_current_version() depending on global 2023-11-17 20:53:38 +09:00
Stephen Seo b0185e1826 Fix type hints of "other_state" 2023-11-17 20:51:50 +09:00
Stephen Seo 0914c37345 Fix get_sudo_privileges depending on global
Another function that depended on "other_state" being global was fixed.
2023-11-17 20:51:26 +09:00
Stephen Seo f79849340e Fix function missing parameter
By putting main into a function, other_state is no longer a global. Some
functions depended on this global dict, so pass it as a parameter
instead.
2023-11-17 20:46:58 +09:00
Stephen Seo c2d15ea593 Encapsulate main into a function 2023-11-17 20:45:47 +09:00
Stephen Seo d57adee92c Add comment about tmpfs in example_config.toml 2023-11-17 20:42:45 +09:00
Stephen Seo c11d339baa Set 5 attempts to umount tmpfs 2023-11-17 20:40:44 +09:00
Stephen Seo d3b8bff839 Set flag to stop building if signal SIGINT 2023-11-17 20:36:43 +09:00
Stephen Seo ba1980afbe More robust status print ending build step 2023-11-17 20:32:12 +09:00
Stephen Seo 02af05e7a4 Use mount options to set tmpfs user/permissions 2023-11-17 20:23:23 +09:00
Stephen Seo 9c82f847ee Experimental support for building in tmpfs 2023-11-17 16:42:06 +09:00
Stephen Seo 9d6378e97d More refactoring of pkg status output
Fix spacing.
2023-11-11 13:54:46 +09:00
Stephen Seo db15a34bf4 Minor tweak to build status print 2023-11-11 11:27:45 +09:00
Stephen Seo 063d13264a Set "build_status" on build failures 2023-11-09 16:09:10 +09:00
Stephen Seo 85655dbc1d Fix weirdness with build status and statsu print 2023-11-09 15:32:26 +09:00
Stephen Seo cd7a98afab Fix repo setup example config 2023-11-09 13:14:56 +09:00
Stephen Seo f30a4fe75a Update README.md 2023-10-29 21:19:53 +09:00
Stephen Seo b10442ae35 Update README.md 2023-10-29 21:17:11 +09:00
Stephen Seo d7941a589d Signal handle SIGUSR1 to print status 2023-10-27 16:10:21 +09:00
Stephen Seo 58040766e8 Handle SIGINT 2023-10-25 22:25:24 +09:00
Stephen Seo 90eec890c7 Disable ccache when checking PKGBUILD pkgver 2023-10-24 11:05:45 +09:00
Stephen Seo a662fc729f Update README.md
Use default of "TrustedOnly" for pacman repo config.
2023-10-20 15:01:24 +09:00
Stephen Seo ef2daa1c85 Fix improper checking of "skip_branch_up_to_date" 2023-10-12 11:28:40 +09:00
Stephen Seo 6c0aa0abdd Clear gpg-agent cache so bad psswds don't pass 2023-10-06 15:54:03 +09:00
Stephen Seo d11af2fd99 Instead of sys.exit(1), fail gracefully some cases 2023-10-03 10:51:43 +09:00