File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
6364NO_PUBLISH=0
6465EDIT_PKGBUILD=0
6566CONTINUE=0
67+ SKIP_BROKEN=0
6668URL=" "
6769REPO=" extra"
6870BUILD=" 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
You can’t perform that action at this time.
0 commit comments