@@ 140,12 140,14 @@ upload_pkg() (
prev_pkgver=$(apk search -x "$pkg" | cut -c$((${#pkg}+2))-)
prev_pkgrel=$(printf "%s" "$prev_pkgver" | cut -d'-' -f2 | cut -d'r' -f2)
+ set -x
ssh "$remote" rm -f "$path/$pkg-$prev_pkgver-r$prev_pkgrel.apk"
pkgver="$(get_pkgvar pkgver)"
pkgrel="$(get_pkgvar pkgrel)"
rsync --blocking-io -rsP \
~/packages/"$repo/$arch/$pkg-$pkgver-r$pkgrel.apk" "$remote":"$path/"
+ set +x
)
update_index() (
@@ 153,6 155,7 @@ update_index() (
arch="$(uname -m)"
path="$remote_path/$repo/$arch"
+ set -x
ssh "$remote" \
find "$path" -type f -name '*.apk' -print0 |
ssh "$remote" xargs -0 apk index \
@@ 164,6 167,7 @@ update_index() (
/tmp/APKINDEX.tar.gz
abuild-sign /tmp/APKINDEX.tar.gz
rsync --blocking-io -rP /tmp/APKINDEX.tar.gz "$remote:$path/"
+ set +x
)
upload() (