Skip to content

Commit 7c3deb4

Browse files
jellychristian-heusel
authored andcommitted
package: rebuild-todo support --skip-broken
1 parent ce9e165 commit 7c3deb4

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

package/rebuild-todo

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ usage() {
3232
--no-bump Don't bump pkgrel before building (default bumps pkgrel)
3333
--testing Publish towards testing
3434
--staging Publish towards staging
35+
--skip-broken Skip broken packages
3536
3637
Repository Filters (default: $REPO)
3738
--core Rebuild [core] packages
@@ -63,6 +64,7 @@ PACKAGES=0
6364
NO_PUBLISH=0
6465
EDIT_PKGBUILD=0
6566
CONTINUE=0
67+
SKIP_BROKEN=0
6668
URL=""
6769
REPO="extra"
6870
BUILD="extra"
@@ -115,6 +117,9 @@ while ((${#})); do
115117
--no-publish)
116118
NO_PUBLISH=1
117119
;;
120+
--skip-broken)
121+
SKIP_BROKEN=1
122+
;;
118123
--core)
119124
PACKAGES=1
120125
BUILD="extra"
@@ -239,7 +244,11 @@ for pkg in "${packages[@]}"; do
239244
if ! ((NO_BUILD)); then
240245
SKIP_BUILD=0
241246
while true; do
242-
if pkgctl build --rebuild --staging; then
247+
if pkgctl build --rebuild --staging; then
248+
break
249+
fi
250+
if ((SKIP_BROKEN)); then
251+
SKIP_BUILD=1
243252
break
244253
fi
245254
echo "We failed to build! You are in a subshell to fix the build. Exit the shell to build again."
@@ -256,7 +265,7 @@ for pkg in "${packages[@]}"; do
256265
fi
257266
fi
258267
if ! ((NO_PUBLISH)); then
259-
pkgctl release --db-update --staging -m "$message"
268+
pkgctl release --db-update --staging -m "$message"
260269
fi
261270
fi
262271
popd &>/dev/null

0 commit comments

Comments
 (0)