Skip to content

Commit ce9e165

Browse files
committed
Port to pkgctl
1 parent 1b81a4b commit ce9e165

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

package/rebuild-todo

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -223,18 +223,10 @@ printf ' %s\n' "${packages[@]}"
223223
printf "Confirm..."
224224
read <&1
225225

226-
if ((PACKAGES)); then
227-
svn checkout -N svn+ssh://svn-packages@repos.archlinux.org/srv/repos/svn-packages/svn "$TMPDIR/packages"
228-
pushd "$TMPDIR/packages" &>/dev/null
229-
fi
230-
svn update -- "${packages[@]}"
226+
pkgctl repo clone "${packages[@]}"
231227

232228
for pkg in "${packages[@]}"; do
233-
pushd "$pkg/trunk" &>/dev/null
234-
235-
if ! ((NO_BUMP)); then
236-
bump_pkgrel
237-
fi
229+
pushd "$pkg" &>/dev/null
238230

239231
# This should help us figure out if the package is already built
240232
readarray -t pkgs < <(makepkg --packagelist)
@@ -247,7 +239,7 @@ for pkg in "${packages[@]}"; do
247239
if ! ((NO_BUILD)); then
248240
SKIP_BUILD=0
249241
while true; do
250-
if offload-build -r "$BUILD"; then
242+
if pkgctl build --rebuild --staging; then
251243
break
252244
fi
253245
echo "We failed to build! You are in a subshell to fix the build. Exit the shell to build again."
@@ -264,7 +256,7 @@ for pkg in "${packages[@]}"; do
264256
fi
265257
fi
266258
if ! ((NO_PUBLISH)); then
267-
commitpkg "$REPO" "$message"
259+
pkgctl release --db-update --staging -m "$message"
268260
fi
269261
fi
270262
popd &>/dev/null

0 commit comments

Comments
 (0)