diff options
-rwxr-xr-x | pkgkit | 24 |
1 files changed, 14 insertions, 10 deletions
@@ -253,20 +253,24 @@ update_index() ( . /etc/os-release aver="$(get_aver)" + tmp_repo="/tmp/$aver/" path="$remote_path/$aver/$arch" set -x - ssh "$remote" \ - find "$path" -type f -name '*.apk' -print0 | - ssh "$remote" xargs -0 apk index \ - --rewrite-arch "$(uname -m)" \ - -x "$path"/APKINDEX.tar.gz \ - -o "$path"/APKINDEX.unsigned.tar.gz + # since my remote server is not alpine I have to download the repo localy rsync --blocking-io -rP \ - "$remote:$path/APKINDEX.unsigned.tar.gz" \ - /tmp/APKINDEX.tar.gz - abuild-sign /tmp/APKINDEX.tar.gz - rsync --blocking-io -rP /tmp/APKINDEX.tar.gz "$remote:$path/" + "$remote:$path/" \ + "$tmp_repo" + + find "tmp_repo" -type f -name '*.apk' -print0 | + xargs -0 apk index \ + --rewrite-arch "$(uname -m)" \ + -x "$tmp_repo"/APKINDEX.tar.gz \ + -o "$tmp_repo"/APKINDEX.unsigned.tar.gz + + abuild-sign "$tmp_repo/APKINDEX.unsigned.tar.gz" + rsync --blocking-io -rP "$tmp_repo/APKINDEX.unsigned.tar.gz" \ + "$remote:$path/APKINDEX.tar.gz" set +x ) |