From bce020ea3625cda8ed65fb10a2b397144b58d5d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Correa=20G=C3=B3mez?= Date: Fri, 13 Jun 2025 20:32:17 +0200 Subject: [PATCH] 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 --- main/postmarketos-mkinitfs-hook-ci/05-ci.sh | 2 +- main/postmarketos-mkinitfs-hook-ci/APKBUILD | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main/postmarketos-mkinitfs-hook-ci/05-ci.sh b/main/postmarketos-mkinitfs-hook-ci/05-ci.sh index b77e05ced..891eb2af9 100644 --- a/main/postmarketos-mkinitfs-hook-ci/05-ci.sh +++ b/main/postmarketos-mkinitfs-hook-ci/05-ci.sh @@ -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 ))")" diff --git a/main/postmarketos-mkinitfs-hook-ci/APKBUILD b/main/postmarketos-mkinitfs-hook-ci/APKBUILD index d00f05780..a3460dd77 100644 --- a/main/postmarketos-mkinitfs-hook-ci/APKBUILD +++ b/main/postmarketos-mkinitfs-hook-ci/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Casey Connolly 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 "