Commit 3a627d26 authored by Natanael Copa's avatar Natanael Copa
Browse files

buildrepo: purge old pkgs before generate index

and generate index if it is missing, even if all packages are up2date.
parent 23b3d4a8
......@@ -44,6 +44,9 @@ build() {
cd "$aportsdir/$repo" || return 1
mkdir -p "$repodir/$repo"
if ! [ -f "$repodir/$repo"/APK_INDEX.gz ]; then
# first we try copy everything possible and find out which we need
# to rebuild. By doing this we might save us for rebuilding
......@@ -79,6 +82,9 @@ build() {
# kill old packages in repo
purge "$repo"
# generate the repository index
cd "$repodir/$repo"
echo ">>> Generating Index for $repo..."
......@@ -90,9 +96,6 @@ build() {
apk $deps index *.apk | gzip -9 > APK_INDEX.gz
# kill old packages in repo
purge "$repo"
while getopts "a:d:hl:pr:" opt; do
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment