Skip to content

Commit 4a43d80

Browse files
authored
Merge pull request #102 from archlinux/rebuild-todo_no-check
rebuild-todo: Add --nocheck support
2 parents 03379e8 + effd700 commit 4a43d80

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

package/rebuild-todo

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ usage() {
2323
-d, --dry-run Show the offload-build and commitpkg being ran
2424
--import-keys Import PGP keys for packages source verification into the user's keyring
2525
--no-build Don't build PKGBUILD
26+
--nocheck Don't run the check() function in the PKGBUILD
2627
--no-publish Don't run commitpkg after building
2728
--testing Publish towards testing
2829
--staging Publish towards staging
@@ -63,6 +64,7 @@ CONTINUE=0
6364
SKIP_BROKEN=0
6465
URL=""
6566
OFFLOAD=""
67+
NOCHECK=""
6668
REPO=""
6769
message=""
6870
filter=("extra")
@@ -115,6 +117,9 @@ while ((${#})); do
115117
--no-build)
116118
NO_BUILD=1
117119
;;
120+
--nocheck)
121+
NOCHECK="$key"
122+
;;
118123
--no-publish)
119124
NO_PUBLISH=1
120125
;;
@@ -200,7 +205,7 @@ if ((DRY)); then
200205
echo "Would rebuild the following packages:"
201206
printf ' %s\n' "${packages[@]}"
202207
echo "With:"
203-
echo " pkgctl build --rebuild $REPO $OFFLOAD"
208+
echo " pkgctl build --rebuild $REPO $OFFLOAD $NOCHECK"
204209
echo " pkgctl release --db-update $REPO -m \"$message\""
205210
exit 0
206211
fi
@@ -246,7 +251,7 @@ for pkg in "${packages[@]}"; do
246251
if ! ((NO_BUILD)); then
247252
SKIP_BUILD=0
248253
while true; do
249-
if pkgctl build --rebuild $REPO $OFFLOAD; then
254+
if pkgctl build --rebuild $REPO $OFFLOAD $NOCHECK; then
250255
rebuilt_packages+=("$pkg")
251256
break
252257
else

0 commit comments

Comments
 (0)