diff --git a/repo-mgmt b/repo-mgmt index 1fae077..f3d3dd4 100755 --- a/repo-mgmt +++ b/repo-mgmt @@ -205,6 +205,7 @@ function build_pkgs() { container_run "sudo apk update && sudo apk upgrade && cd /build/$pkg && abuild checksum && abuild -r && find /home/apkbuild/packages/build -name $1*.apk -exec mv {} /build/$1 \;" message_blue_single_arrow "Copying package to repo" local VERSION_ID=$(container_run "grep VERSION_ID= /etc/os-release") + find $REPO_DIR/v$(echo $VERSION_ID | cut -d= -f2 | rev | cut -d. -f2- | rev)/noveria/x86_64 -name $1*.apk -exec rm -f {} \; rsync -a --delete-before --progress "${BUILD_DIR}/$pkg"/*.apk "${REPO_DIR}/v$(echo $VERSION_ID | cut -d= -f2 | rev | cut -d. -f2- | rev)/noveria/x86_64" rm -f "${BUILD_DIR}/$pkg"/*.apk refresh_repo