1
0
Fork 0
mirror of https://gitlab.postmarketos.org/postmarketOS/pmaports.git synced 2025-07-12 16:19:48 +03:00

postmarketos-mkinitfs-hook-ci: limit repetition counts to 3

As suggested by Martin in
https://gitlab.postmarketos.org/postmarketOS/postmarketos-mkinitfs/-/merge_requests/63#note_485885

In the process, move the pkgver to integers, since similar to device
packages, nothing else makes sense here.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6659
[ci:skip-build]: already built successfully in CI
This commit is contained in:
Pablo Correa Gómez 2025-06-13 20:32:17 +02:00 committed by Pablo Correa Gómez
parent c8b5872b56
commit bce020ea36
No known key found for this signature in database
GPG key ID: 7A342565FF635F79
2 changed files with 4 additions and 4 deletions

View file

@ -13,7 +13,7 @@
_report_ci() {
local precision=1000
local duration=2
local count=20
local count=3
while [ "$((count = count - 1))" -gt 0 ]; do
printf '%s\n' "$@"
sleep "$(printf '0.%03d' "$(( precision * duration / count ))")"

View file

@ -1,7 +1,7 @@
# Maintainer: Casey Connolly <kcxt@postmarketos.org>
pkgname=postmarketos-mkinitfs-hook-ci
pkgver=0.1.1
pkgrel=1
pkgver=1
pkgrel=0
pkgdesc="Hook for doing automated CI tests in the initramfs"
url="https://postmarketos.org"
source="
@ -20,6 +20,6 @@ package() {
}
sha512sums="
3dfc0024370a43765081f34ae86e5289a6bd3f30daea81d8ed87e03e66e1001bb5ee02bdbabea7491c9f560cf2099968419c66090384b52890669a629246139e 05-ci.sh
1f98b0a08bd8712bec92f1d6867c72a1393c2e0a1f828563b0278856299ba33946d29cd8c8d1a95be7954f7ac5b77a8bcedb88abd648bf54ce40c64fb330b8b0 05-ci.sh
26d665b817a4978dca44e0c697d98e12c58fa7941da86b9e3bfef6ecb0791d55859c0b671c00d7f88cfca688acf0dcc3e593ca5d8dd3cc094f582b49dabea645 05-ci.files
"