~dricottone/huttese-apk

d56be4a168a343bd939aaf290e2cc852e13f9576 — Drew DeVault 5 years ago 20bc213
Handle Alpine release in pkgkit
1 files changed, 8 insertions(+), 2 deletions(-)

M pkgkit
M pkgkit => pkgkit +8 -2
@@ 182,9 182,11 @@ upload_pkg() (
	repo="$1"
	pkg="$2"
	arch="$(uname -m)"
	. /etc/os-release
	aver="v$(printf "%s" "$VERSION_ID" | cut -d. -f1-2)"

	set -x
	path="$remote_path/$repo/$arch"
	path="$remote_path/$aver/$repo/$arch"
	ssh "$remote" mkdir -p "$path"

	url=$(echo "$remote" | cut -d@ -f2)


@@ 208,7 210,11 @@ upload_pkg() (
update_index() (
	repo="$1"
	arch="$(uname -m)"
	path="$remote_path/$repo/$arch"

	. /etc/os-release
	aver="v$(printf "%s" "$VERSION_ID" | cut -d. -f1-2)"

	path="$remote_path/$aver/$repo/$arch"

	set -x
	ssh "$remote" \