@@ -32,15 +32,15 @@ usage() {
32
32
--no-bump Don't bump pkgrel before building (default bumps pkgrel)
33
33
--testing Publish towards testing
34
34
--staging Publish towards staging
35
+ --skip-broken Skip broken packages
35
36
36
37
Repository Filters (default: $REPO )
37
38
--core Rebuild [core] packages
38
39
--extra Rebuild [extra] packages
39
- --community Rebuild [community] packages
40
40
--multilib Rebuild [multilib] packages
41
41
42
42
Examples:
43
- Rebuilds all packages in [community ] towards [community ] ignoring "archlinux-contrib"
43
+ Rebuilds all packages in [extra ] towards [extra ] ignoring "archlinux-contrib"
44
44
$ ${PROGNAME} -i "archlinux-contrib" "https://archlinux.org/todo/some-todo-list/"
45
45
46
46
Rebuilds all packages from [extra] towards [extra-testing]
@@ -63,13 +63,13 @@ NO_BUILD=0
63
63
PACKAGES=0
64
64
NO_PUBLISH=0
65
65
EDIT_PKGBUILD=0
66
- COMMUNITY=1
67
66
CONTINUE=0
67
+ SKIP_BROKEN=0
68
68
URL=" "
69
- REPO=" community "
69
+ REPO=" extra "
70
70
BUILD=" extra"
71
71
message=" "
72
- filter=(" community " )
72
+ filter=(" extra " )
73
73
maintainers=()
74
74
packages=()
75
75
ignore=()
@@ -117,30 +117,23 @@ while ((${#})); do
117
117
--no-publish)
118
118
NO_PUBLISH=1
119
119
;;
120
+ --skip-broken)
121
+ SKIP_BROKEN=1
122
+ ;;
120
123
--core)
121
124
PACKAGES=1
122
- COMMUNITY=0
123
125
BUILD=" extra"
124
126
REPO=" core"
125
127
filter=(" extra" )
126
128
;;
127
129
--extra)
128
130
PACKAGES=1
129
- COMMUNITY=0
130
131
BUILD=" extra"
131
132
REPO=" extra"
132
133
filter=(" extra" )
133
134
;;
134
- --community)
135
- PACKAGES=0
136
- COMMUNITY=1
137
- BUILD=" extra"
138
- REPO=" community"
139
- filter=(" community" )
140
- ;;
141
135
--multilib)
142
136
PACKAGES=0
143
- COMMUNITY=1
144
137
REPO=" multilib"
145
138
BUILD=" multilib"
146
139
filter=(" multilib" )
@@ -235,22 +228,10 @@ printf ' %s\n' "${packages[@]}"
235
228
printf " Confirm..."
236
229
read < & 1
237
230
238
- if (( COMMUNITY)) ; then
239
- svn checkout -N svn+ssh://svn-community@repos.archlinux.org/srv/repos/svn-community/svn " $TMPDIR /community"
240
- pushd " $TMPDIR /community" & > /dev/null
241
- fi
242
- if (( PACKAGES)) ; then
243
- svn checkout -N svn+ssh://svn-packages@repos.archlinux.org/srv/repos/svn-packages/svn " $TMPDIR /packages"
244
- pushd " $TMPDIR /packages" & > /dev/null
245
- fi
246
- svn update -- " ${packages[@]} "
231
+ pkgctl repo clone " ${packages[@]} "
247
232
248
233
for pkg in " ${packages[@]} " ; do
249
- pushd " $pkg /trunk" & > /dev/null
250
-
251
- if ! (( NO_BUMP)) ; then
252
- bump_pkgrel
253
- fi
234
+ pushd " $pkg " & > /dev/null
254
235
255
236
# This should help us figure out if the package is already built
256
237
readarray -t pkgs < <( makepkg --packagelist)
@@ -263,7 +244,11 @@ for pkg in "${packages[@]}"; do
263
244
if ! (( NO_BUILD)) ; then
264
245
SKIP_BUILD=0
265
246
while true ; do
266
- if offload-build -r " $BUILD " ; then
247
+ if pkgctl build --rebuild --staging; then
248
+ break
249
+ fi
250
+ if (( SKIP_BROKEN)) ; then
251
+ SKIP_BUILD=1
267
252
break
268
253
fi
269
254
echo " We failed to build! You are in a subshell to fix the build. Exit the shell to build again."
@@ -280,7 +265,7 @@ for pkg in "${packages[@]}"; do
280
265
fi
281
266
fi
282
267
if ! (( NO_PUBLISH)) ; then
283
- commitpkg " $REPO " " $message "
268
+ pkgctl release --db-update --staging -m " $message "
284
269
fi
285
270
fi
286
271
popd & > /dev/null
0 commit comments