]> git.seodisparate.com - AnotherAURHelper/log
AnotherAURHelper
17 hours ago"--no-skip" not ignored when check_hash is enabled dev main
Stephen Seo [Thu, 27 Mar 2025 08:50:14 +0000 (17:50 +0900)]
"--no-skip" not ignored when check_hash is enabled

5 weeks agoHandle "FileNotFoundError" when hashing PKGBUILDs
Stephen Seo [Sat, 15 Mar 2025 08:02:28 +0000 (17:02 +0900)]
Handle "FileNotFoundError" when hashing PKGBUILDs

Hash is used for option `hash_compare_PKGBUILD`.

6 weeks agoMerge branch 'dev'
Stephen Seo [Fri, 7 Mar 2025 02:09:36 +0000 (11:09 +0900)]
Merge branch 'dev'

6 weeks agoUpdate README.md
Stephen Seo [Thu, 6 Mar 2025 07:12:19 +0000 (16:12 +0900)]
Update README.md

6 weeks agoUpdate README.md
Stephen Seo [Thu, 6 Mar 2025 04:03:03 +0000 (13:03 +0900)]
Update README.md

6 weeks agoImpl. pkg state via sqlite
Stephen Seo [Thu, 6 Mar 2025 02:38:39 +0000 (11:38 +0900)]
Impl. pkg state via sqlite

Keep track of trusted PKGBUILDs using sqlite, so that
"hash_compare_PKGBUILD" never skips a package's PKGBUILD that hasn't
been explicitly trusted.

6 weeks agoMerge branch 'dev'
Stephen Seo [Wed, 5 Mar 2025 02:56:26 +0000 (11:56 +0900)]
Merge branch 'dev'

6 weeks agoUpdate README.md
Stephen Seo [Wed, 5 Mar 2025 02:55:43 +0000 (11:55 +0900)]
Update README.md

6 weeks agoUpdate README.md
Stephen Seo [Tue, 4 Mar 2025 06:35:40 +0000 (15:35 +0900)]
Update README.md

Add link to Github Pages generated documentation.

6 weeks agoUpdate README.md
Stephen Seo [Tue, 4 Mar 2025 06:35:40 +0000 (15:35 +0900)]
Update README.md

Add link to Github Pages generated documentation.

7 weeks agoUpdate LICENSE year
Stephen Seo [Mon, 3 Mar 2025 05:12:07 +0000 (14:12 +0900)]
Update LICENSE year

7 weeks agoUpdate example_config.toml
Stephen Seo [Mon, 3 Mar 2025 04:35:13 +0000 (13:35 +0900)]
Update example_config.toml

7 weeks ago"auto_check_PKGBUILD" to "hash_compare_PKGBUILD"
Stephen Seo [Mon, 3 Mar 2025 04:34:46 +0000 (13:34 +0900)]
"auto_check_PKGBUILD" to "hash_compare_PKGBUILD"

Renamed option.

7 weeks agoAdd "only_check_SRCINFO", "only_check_PKGBUILD"
Stephen Seo [Mon, 3 Mar 2025 04:29:56 +0000 (13:29 +0900)]
Add "only_check_SRCINFO", "only_check_PKGBUILD"

Add pkg options to skip the selection between SRCINFO and PKGBUILD by
explicitly setting them in the config file.

7 weeks agoAdd some informative logs when auto_check_PKGBUILD
Stephen Seo [Mon, 3 Mar 2025 03:24:14 +0000 (12:24 +0900)]
Add some informative logs when auto_check_PKGBUILD

7 weeks agoUpdate example_config.toml
Stephen Seo [Mon, 3 Mar 2025 03:09:30 +0000 (12:09 +0900)]
Update example_config.toml

7 weeks agoAdd pkg option "auto_check_PKGBUILD"
Stephen Seo [Mon, 3 Mar 2025 03:04:15 +0000 (12:04 +0900)]
Add pkg option "auto_check_PKGBUILD"

This option, when set "true" for a package, will skip checking the
PKGBUILD via an editor if the PKGBUILD did not change after doing a "git
pull" on the repository.

5 months agoSpecify "CCACHE_NOHASHDIR" when using ccache
Stephen Seo [Mon, 11 Nov 2024 06:55:47 +0000 (15:55 +0900)]
Specify "CCACHE_NOHASHDIR" when using ccache

AUR packages tend to be built with the package's name and version as
part of the current-working-directory during building. Specifying
CCACHE_NOHASHDIR=1 will cause ccache to ignore the
current-working-directory when hashing for ccache-cached objects. This
should hopefully fix issues where new package versions tend to cause
cache-misses on build.

7 months agoFormatting
Stephen Seo [Wed, 4 Sep 2024 06:49:19 +0000 (15:49 +0900)]
Formatting

7 months agoAdd opt to show "install" pkgs state when SIGUSR1
Stephen Seo [Wed, 28 Aug 2024 08:19:52 +0000 (17:19 +0900)]
Add opt to show "install" pkgs state when SIGUSR1

11 months agoAppend "--include-sigs" to "repo-add" command
Stephen Seo [Thu, 16 May 2024 06:37:07 +0000 (15:37 +0900)]
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.

11 months agoFix unescaped backslash in string
Stephen Seo [Sun, 28 Apr 2024 10:51:42 +0000 (19:51 +0900)]
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.

11 months agoRefactor pkg state printing
Stephen Seo [Thu, 25 Apr 2024 07:43:35 +0000 (16:43 +0900)]
Refactor pkg state printing

11 months agoFix case where aur pkg-pull/get-remote-info fails
Stephen Seo [Tue, 23 Apr 2024 06:52:46 +0000 (15:52 +0900)]
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.

12 months agoUpdate README.md
Stephen Seo [Tue, 9 Apr 2024 05:48:16 +0000 (14:48 +0900)]
Update README.md

Improve documentation in README.md.

12 months agoEnsure only one of s/ccache in "other_deps"
Stephen Seo [Mon, 8 Apr 2024 06:19:52 +0000 (15:19 +0900)]
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.

12 months agoUpdate README.md
Stephen Seo [Mon, 8 Apr 2024 03:17:42 +0000 (12:17 +0900)]
Update README.md

Note about not having ccache/sccache preinstalled in chroot.

12 months agoAdd notice when dependency prefetch is successful
Stephen Seo [Mon, 8 Apr 2024 03:11:31 +0000 (12:11 +0900)]
Add notice when dependency prefetch is successful

12 months agoFix prefetch_dependencies fn
Stephen Seo [Mon, 8 Apr 2024 03:00:08 +0000 (12:00 +0900)]
Fix prefetch_dependencies fn

Fixed invalid log of packages to prefetch (tried to read invalid
variable name that changed from "pkg" to "pkgs").

12 months agoFixes
Stephen Seo [Mon, 8 Apr 2024 02:57:09 +0000 (11:57 +0900)]
Fixes

Change "prefetch_dependency" to "prefetch_dependnecies" and fetch all
"other_deps" at the same time.

Fix some erronous type hints.

12 months agoInstall s/ccache only when needed, note in README
Stephen Seo [Mon, 8 Apr 2024 02:12:13 +0000 (11:12 +0900)]
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.

12 months agoPrefetch "other_deps" with "pacman -Sw"
Stephen Seo [Mon, 8 Apr 2024 02:02:36 +0000 (11:02 +0900)]
Prefetch "other_deps" with "pacman -Sw"

12 months agoUpdate README.md
Stephen Seo [Thu, 4 Apr 2024 02:30:19 +0000 (11:30 +0900)]
Update README.md

Add note about security.

12 months agoFix README.md
Stephen Seo [Tue, 2 Apr 2024 06:03:34 +0000 (15:03 +0900)]
Fix README.md

12 months agoUpdate README.md
Stephen Seo [Tue, 2 Apr 2024 05:38:36 +0000 (14:38 +0900)]
Update README.md

Add note about "install scripts".

Fix typo.

12 months agoUpdate LICENSE year
Stephen Seo [Tue, 2 Apr 2024 05:28:56 +0000 (14:28 +0900)]
Update LICENSE year

12 months agoDon't generate user chroot if already once
Stephen Seo [Tue, 2 Apr 2024 05:09:14 +0000 (14:09 +0900)]
Don't generate user chroot if already once

12 months agoImprove install script rechecking
Stephen Seo [Tue, 2 Apr 2024 04:30:26 +0000 (13:30 +0900)]
Improve install script rechecking

Rechecking the install script no longer re-prepares the user chroot.

12 months agoImpl. install script "rechecking" option
Stephen Seo [Tue, 2 Apr 2024 04:20:57 +0000 (13:20 +0900)]
Impl. install script "rechecking" option

12 months agoAdd checking of install script
Stephen Seo [Tue, 2 Apr 2024 04:07:45 +0000 (13:07 +0900)]
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).

17 months agoFix GLOBAL_LOG_FILE not being set by config
Stephen Seo [Tue, 21 Nov 2023 02:38:39 +0000 (11:38 +0900)]
Fix GLOBAL_LOG_FILE not being set by config

17 months agoImpl. checking PKGBUILD versions from in chroot
Stephen Seo [Sat, 18 Nov 2023 10:37:10 +0000 (19:37 +0900)]
Impl. checking PKGBUILD versions from in chroot

17 months agoFix type hint for tuple of strings
Stephen Seo [Sat, 18 Nov 2023 04:41:58 +0000 (13:41 +0900)]
Fix type hint for tuple of strings

17 months agoFix build_print_pkg_info() depending on global
Stephen Seo [Fri, 17 Nov 2023 11:58:27 +0000 (20:58 +0900)]
Fix build_print_pkg_info() depending on global

17 months agoFix confirm_result() depending on global
Stephen Seo [Fri, 17 Nov 2023 11:55:17 +0000 (20:55 +0900)]
Fix confirm_result() depending on global

17 months agoFix get_pkg_current_version() depending on global
Stephen Seo [Fri, 17 Nov 2023 11:53:21 +0000 (20:53 +0900)]
Fix get_pkg_current_version() depending on global

17 months agoFix type hints of "other_state"
Stephen Seo [Fri, 17 Nov 2023 11:51:50 +0000 (20:51 +0900)]
Fix type hints of "other_state"

17 months agoFix get_sudo_privileges depending on global
Stephen Seo [Fri, 17 Nov 2023 11:51:26 +0000 (20:51 +0900)]
Fix get_sudo_privileges depending on global

Another function that depended on "other_state" being global was fixed.

17 months agoFix function missing parameter
Stephen Seo [Fri, 17 Nov 2023 11:46:58 +0000 (20:46 +0900)]
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.

17 months agoEncapsulate main into a function
Stephen Seo [Fri, 17 Nov 2023 11:45:47 +0000 (20:45 +0900)]
Encapsulate main into a function

17 months agoAdd comment about tmpfs in example_config.toml
Stephen Seo [Fri, 17 Nov 2023 11:42:45 +0000 (20:42 +0900)]
Add comment about tmpfs in example_config.toml

17 months agoSet 5 attempts to umount tmpfs
Stephen Seo [Fri, 17 Nov 2023 11:40:44 +0000 (20:40 +0900)]
Set 5 attempts to umount tmpfs

17 months agoSet flag to stop building if signal SIGINT
Stephen Seo [Fri, 17 Nov 2023 11:36:43 +0000 (20:36 +0900)]
Set flag to stop building if signal SIGINT

17 months agoMore robust status print ending build step
Stephen Seo [Fri, 17 Nov 2023 11:32:12 +0000 (20:32 +0900)]
More robust status print ending build step

17 months agoUse mount options to set tmpfs user/permissions
Stephen Seo [Fri, 17 Nov 2023 11:19:30 +0000 (20:19 +0900)]
Use mount options to set tmpfs user/permissions

17 months agoExperimental support for building in tmpfs
Stephen Seo [Fri, 17 Nov 2023 07:28:49 +0000 (16:28 +0900)]
Experimental support for building in tmpfs

17 months agoMore refactoring of pkg status output
Stephen Seo [Sat, 11 Nov 2023 04:54:34 +0000 (13:54 +0900)]
More refactoring of pkg status output

Fix spacing.

17 months agoMinor tweak to build status print
Stephen Seo [Sat, 11 Nov 2023 02:24:05 +0000 (11:24 +0900)]
Minor tweak to build status print

17 months agoSet "build_status" on build failures
Stephen Seo [Thu, 9 Nov 2023 07:08:49 +0000 (16:08 +0900)]
Set "build_status" on build failures

17 months agoFix weirdness with build status and statsu print
Stephen Seo [Thu, 9 Nov 2023 06:32:26 +0000 (15:32 +0900)]
Fix weirdness with build status and statsu print

17 months agoFix repo setup example config
Stephen Seo [Thu, 9 Nov 2023 04:14:56 +0000 (13:14 +0900)]
Fix repo setup example config

17 months agoUpdate README.md
Stephen Seo [Sun, 29 Oct 2023 12:19:53 +0000 (21:19 +0900)]
Update README.md

17 months agoUpdate README.md
Stephen Seo [Sun, 29 Oct 2023 12:17:11 +0000 (21:17 +0900)]
Update README.md

17 months agoSignal handle SIGUSR1 to print status
Stephen Seo [Fri, 27 Oct 2023 07:10:21 +0000 (16:10 +0900)]
Signal handle SIGUSR1 to print status

17 months agoHandle SIGINT
Stephen Seo [Wed, 25 Oct 2023 13:19:35 +0000 (22:19 +0900)]
Handle SIGINT

17 months agoDisable ccache when checking PKGBUILD pkgver
Stephen Seo [Tue, 24 Oct 2023 02:05:45 +0000 (11:05 +0900)]
Disable ccache when checking PKGBUILD pkgver

18 months agoUpdate README.md
Stephen Seo [Fri, 20 Oct 2023 05:58:34 +0000 (14:58 +0900)]
Update README.md

Use default of "TrustedOnly" for pacman repo config.

18 months agoFix improper checking of "skip_branch_up_to_date"
Stephen Seo [Thu, 12 Oct 2023 02:28:40 +0000 (11:28 +0900)]
Fix improper checking of "skip_branch_up_to_date"

18 months agoClear gpg-agent cache so bad psswds don't pass
Stephen Seo [Fri, 6 Oct 2023 06:54:03 +0000 (15:54 +0900)]
Clear gpg-agent cache so bad psswds don't pass

18 months agoInstead of sys.exit(1), fail gracefully some cases
Stephen Seo [Tue, 3 Oct 2023 01:51:43 +0000 (10:51 +0900)]
Instead of sys.exit(1), fail gracefully some cases

19 months agoAdd documentation and type hints to datetime fns
Stephen Seo [Tue, 12 Sep 2023 02:21:04 +0000 (11:21 +0900)]
Add documentation and type hints to datetime fns

19 months agoFix datetime string in localtime (better fix)
Stephen Seo [Tue, 12 Sep 2023 02:17:13 +0000 (11:17 +0900)]
Fix datetime string in localtime (better fix)

19 months agoFix datetime string in localtime
Stephen Seo [Tue, 12 Sep 2023 02:12:07 +0000 (11:12 +0900)]
Fix datetime string in localtime

19 months agoFix build log not having space after timestamp
Stephen Seo [Mon, 11 Sep 2023 01:39:05 +0000 (10:39 +0900)]
Fix build log not having space after timestamp

19 months agoFix "datetime_in_local_time" usage
Stephen Seo [Mon, 11 Sep 2023 01:29:10 +0000 (10:29 +0900)]
Fix "datetime_in_local_time" usage

19 months agoImpl. using localtime timestamps if set in config
Stephen Seo [Sun, 10 Sep 2023 12:25:46 +0000 (21:25 +0900)]
Impl. using localtime timestamps if set in config

19 months agoUse RFC-3339/ISO-8601 compatible timestamps
Stephen Seo [Sat, 9 Sep 2023 02:06:04 +0000 (11:06 +0900)]
Use RFC-3339/ISO-8601 compatible timestamps

19 months agoLog package "installation" output
Stephen Seo [Wed, 6 Sep 2023 03:29:48 +0000 (12:29 +0900)]
Log package "installation" output

20 months agoApply "link_cargo_registry" in PKGBUILD ver. check
Stephen Seo [Wed, 26 Jul 2023 01:49:27 +0000 (10:49 +0900)]
Apply "link_cargo_registry" in PKGBUILD ver. check

21 months agoAdd doc-comment for fn handle_output_stream
Stephen Seo [Mon, 26 Jun 2023 04:18:19 +0000 (13:18 +0900)]
Add doc-comment for fn handle_output_stream

21 months agoImpl setting build to fail/continue on limit
Stephen Seo [Sun, 25 Jun 2023 11:21:03 +0000 (20:21 +0900)]
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.

21 months agoEnforce a "log_limit" to limit stdout/stderr logs
Stephen Seo [Fri, 23 Jun 2023 11:01:58 +0000 (20:01 +0900)]
Enforce a "log_limit" to limit stdout/stderr logs

Default "log_limit" of 1 GiB for stdout/stderr from building packages
output.

21 months agoFix erronous use of "Rust only" flag
Stephen Seo [Fri, 23 Jun 2023 03:03:57 +0000 (12:03 +0900)]
Fix erronous use of "Rust only" flag

21 months agoImpl "Rust only" sccache usage by config option
Stephen Seo [Fri, 23 Jun 2023 02:44:50 +0000 (11:44 +0900)]
Impl "Rust only" sccache usage by config option

22 months agoFix handling of "is_timed" when using log_print()
Stephen Seo [Wed, 7 Jun 2023 04:37:40 +0000 (13:37 +0900)]
Fix handling of "is_timed" when using log_print()

22 months agoHandle more (any) exceptions when building
Stephen Seo [Wed, 7 Jun 2023 04:32:06 +0000 (13:32 +0900)]
Handle more (any) exceptions when building

22 months agoImpl timestamped logs
Stephen Seo [Wed, 7 Jun 2023 03:25:39 +0000 (12:25 +0900)]
Impl timestamped logs

2 years agoMinor tweak to info output when verifying/building
Stephen Seo [Tue, 21 Mar 2023 02:11:29 +0000 (11:11 +0900)]
Minor tweak to info output when verifying/building

2 years agoAdd notes about `link_cargo_registry`
Stephen Seo [Mon, 20 Mar 2023 05:48:33 +0000 (14:48 +0900)]
Add notes about `link_cargo_registry`

2 years agoRevert "Check pkg sources in chroot"
Stephen Seo [Sat, 18 Mar 2023 04:24:54 +0000 (13:24 +0900)]
Revert "Check pkg sources in chroot"

This reverts commit 8891a80087811a9834063cd2550ceb67b971beb8.

2 years agoCheck pkg sources in chroot
Stephen Seo [Fri, 17 Mar 2023 07:09:20 +0000 (16:09 +0900)]
Check pkg sources in chroot

2 years agoUpdate README.md
Stephen Seo [Fri, 17 Mar 2023 06:26:08 +0000 (15:26 +0900)]
Update README.md

2 years agoUpdate README.md
Stephen Seo [Fri, 17 Mar 2023 06:24:23 +0000 (15:24 +0900)]
Update README.md

2 years agoFix integirty checking with gpg
Stephen Seo [Fri, 17 Mar 2023 06:20:16 +0000 (15:20 +0900)]
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.

2 years agoBind `.cargo/git` dir with `link_cargo_registry`
Stephen Seo [Tue, 28 Feb 2023 02:49:06 +0000 (11:49 +0900)]
Bind `.cargo/git` dir with `link_cargo_registry`

2 years agoAdd opt to link "$HOME/.cargo/registry" on build
Stephen Seo [Mon, 27 Feb 2023 09:21:59 +0000 (18:21 +0900)]
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.

2 years agoMerge branch 'dev'
Stephen Seo [Sat, 4 Feb 2023 08:09:31 +0000 (17:09 +0900)]
Merge branch 'dev'

Fixes https://github.com/Stephen-Seo/AnotherAURHelper/issues/1

2 years agoAdd type annotations to ArchPkgVersion class
Stephen Seo [Sat, 4 Feb 2023 08:08:49 +0000 (17:08 +0900)]
Add type annotations to ArchPkgVersion class

2 years agoAdd some docstrings to the ArchPkgVersion class
Stephen Seo [Sat, 4 Feb 2023 08:04:56 +0000 (17:04 +0900)]
Add some docstrings to the ArchPkgVersion class

2 years agoRemove usage of python-packaging, minor fixes
Stephen Seo [Sat, 4 Feb 2023 08:01:25 +0000 (17:01 +0900)]
Remove usage of python-packaging, minor fixes