Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src/commitpkg.in
diff options
context:
space:
mode:
authorLevente Polyak <anthraxx@archlinux.org>2023-09-10 00:00:27 +0200
committerLevente Polyak <anthraxx@archlinux.org>2024-01-10 00:14:01 +0100
commitb264c7f1c771790c53561f5d3f4de589e0000c05 (patch)
tree9209cbd4900e7143bee5724fd048213bf5a16996 /src/commitpkg.in
parent2b8033b91132d303603f370a54eef02949703750 (diff)
feat(util): parallelize srcinfo generation
Heavily improve the runtime of huge split packages, by creating an own parallelized high level implementation of the makepkg low level building blocks for srcinfo generation. This reduces the runtine to generate the srcinfo file for thunderbird from 24 seconds down to 1 second.
Diffstat (limited to 'src/commitpkg.in')
-rw-r--r--src/commitpkg.in10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/commitpkg.in b/src/commitpkg.in
index 016ab22..e17b270 100644
--- a/src/commitpkg.in
+++ b/src/commitpkg.in
@@ -5,9 +5,12 @@
_DEVTOOLS_LIBRARY_DIR=${_DEVTOOLS_LIBRARY_DIR:-@pkgdatadir@}
# shellcheck source=src/lib/common.sh
source "${_DEVTOOLS_LIBRARY_DIR}"/lib/common.sh
+# shellcheck source=src/lib/util/srcinfo.sh
+source "${_DEVTOOLS_LIBRARY_DIR}"/lib/util/srcinfo.sh
source /usr/share/makepkg/util/util.sh
-source /usr/share/makepkg/srcinfo.sh
+
+set -eo pipefail
check_pkgbuild_validity() {
@@ -185,10 +188,9 @@ done
check_pkgbuild_validity
# auto generate .SRCINFO
-stat_busy 'Generating .SRCINFO'
-write_srcinfo_content > .SRCINFO
+# shellcheck disable=SC2119
+write_srcinfo_file
git add --force .SRCINFO
-stat_done
if [[ -n $(git status --porcelain --untracked-files=no) ]]; then
stat_busy 'Staging files'