~dricottone/huttese-apk

180c3dcb51dba0fa60a19c65df94658120d320f3 — Drew DeVault 5 years ago 54f29d8
Add some additioanl verbosity to pkgkit
1 files changed, 4 insertions(+), 0 deletions(-)

M pkgkit
M pkgkit => pkgkit +4 -0
@@ 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() (