@@ -25,6 +25,7 @@ usage() {
25
25
-i, --ignore Give one or more pkgbases to ignore
26
26
-f, --filter Filter for one or more maintainers (orphan for orphan packages)
27
27
-e, --edit Edit PKGBUILD before building. Default when todo type is "Task"
28
+ -o, --offload Use offloaded builds
28
29
-h, --help Show this help text
29
30
--dry-run Show the offload-build and commitpkg being ran
30
31
--no-build Don't build PKGBUILD
@@ -43,6 +44,9 @@ usage() {
43
44
Rebuilds all packages in [extra] towards [extra] ignoring "archlinux-contrib"
44
45
$ ${PROGNAME} -i "archlinux-contrib" "https://archlinux.org/todo/some-todo-list/"
45
46
47
+ Rebuilds all packages in [extra] towards [extra] using offloaded builds
48
+ $ ${PROGNAME} -o "https://archlinux.org/todo/some-todo-list/"
49
+
46
50
Rebuilds all packages from [extra] towards [extra-testing]
47
51
$ ${PROGNAME} --extra --testing "https://archlinux.org/todo/some-todo-list/"
48
52
@@ -64,6 +68,7 @@ EDIT_PKGBUILD=0
64
68
CONTINUE=0
65
69
SKIP_BROKEN=0
66
70
URL=" "
71
+ OFFLOAD=" "
67
72
REPO=" "
68
73
message=" "
69
74
filter=(" extra" )
@@ -101,6 +106,9 @@ while ((${#})); do
101
106
-e|--edit)
102
107
EDIT_PKGBUILD=1
103
108
;;
109
+ -o|--offload)
110
+ OFFLOAD=" $key "
111
+ ;;
104
112
-d|--dry-run)
105
113
DRY=1
106
114
;;
@@ -195,7 +203,7 @@ if ((DRY)); then
195
203
echo " Would rebuild the following packages:"
196
204
printf ' %s\n' " ${packages[@]} "
197
205
echo " With:"
198
- echo " pkgctl build --rebuild $REPO "
206
+ echo " pkgctl build --rebuild $REPO $OFFLOAD "
199
207
echo " pkgctl release --db-update $REPO -m \" $message \" "
200
208
exit 0
201
209
fi
@@ -225,7 +233,7 @@ for pkg in "${packages[@]}"; do
225
233
if ! (( NO_BUILD)) ; then
226
234
SKIP_BUILD=0
227
235
while true ; do
228
- if pkgctl build --rebuild $REPO ; then
236
+ if pkgctl build --rebuild $REPO $OFFLOAD ; then
229
237
rebuilt_packages+=(" $pkg " )
230
238
break
231
239
else
0 commit comments