From bb980f849518fabfbdc44eaffeade0e36b8e0742 Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Tue, 28 Jul 2009 08:44:32 +0000
Subject: [PATCH] buildrepo: set permissions on APKINDEX.tar.gz - clean up old
 tmp.*

This solves issues for rsync jobs for mirrors.
---
 buildrepo.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/buildrepo.in b/buildrepo.in
index 7c24b8667692..5aa3e43a3e50 100755
--- a/buildrepo.in
+++ b/buildrepo.in
@@ -99,6 +99,8 @@ build() {
 	tmpindex=$(mktemp).tar.gz
 	apk index $oldindex -o $tmpindex *.apk
 	abuild-sign $tmpindex && mv $tmpindex APKINDEX.tar.gz
+	chmod 644 APKINDEX.tar.gz
+	rm -f tmp.*
 }
 
 while getopts "a:d:hl:pr:" opt; do
-- 
GitLab