@@ -25,6 +25,7 @@ usage() {
2525 -i, --ignore Give one or more pkgbases to ignore
2626 -f, --filter Filter for one or more maintainers (orphan for orphan packages)
2727 -e, --edit Edit PKGBUILD before building. Default when todo type is "Task"
28+ -o, --offload Use offloaded builds
2829 -h, --help Show this help text
2930 --dry-run Show the offload-build and commitpkg being ran
3031 --no-build Don't build PKGBUILD
@@ -43,6 +44,9 @@ usage() {
4344 Rebuilds all packages in [extra] towards [extra] ignoring "archlinux-contrib"
4445 $ ${PROGNAME} -i "archlinux-contrib" "https://archlinux.org/todo/some-todo-list/"
4546
47+ Rebuilds all packages in [extra] towards [extra] using offloaded builds
48+ $ ${PROGNAME} -o "https://archlinux.org/todo/some-todo-list/"
49+
4650 Rebuilds all packages from [extra] towards [extra-testing]
4751 $ ${PROGNAME} --extra --testing "https://archlinux.org/todo/some-todo-list/"
4852
@@ -64,6 +68,7 @@ EDIT_PKGBUILD=0
6468CONTINUE=0
6569SKIP_BROKEN=0
6670URL=" "
71+ OFFLOAD=" "
6772REPO=" "
6873message=" "
6974filter=(" extra" )
@@ -101,6 +106,9 @@ while ((${#})); do
101106 -e|--edit)
102107 EDIT_PKGBUILD=1
103108 ;;
109+ -o|--offload)
110+ OFFLOAD=" $key "
111+ ;;
104112 -d|--dry-run)
105113 DRY=1
106114 ;;
@@ -195,7 +203,7 @@ if ((DRY)); then
195203 echo " Would rebuild the following packages:"
196204 printf ' %s\n' " ${packages[@]} "
197205 echo " With:"
198- echo " pkgctl build --rebuild $REPO "
206+ echo " pkgctl build --rebuild $REPO $OFFLOAD "
199207 echo " pkgctl release --db-update $REPO -m \" $message \" "
200208 exit 0
201209fi
@@ -225,7 +233,7 @@ for pkg in "${packages[@]}"; do
225233 if ! (( NO_BUILD)) ; then
226234 SKIP_BUILD=0
227235 while true ; do
228- if pkgctl build --rebuild $REPO ; then
236+ if pkgctl build --rebuild $REPO $OFFLOAD ; then
229237 rebuilt_packages+=(" $pkg " )
230238 break
231239 else
0 commit comments