From 5f54ea364b3d0314681a97149a1b5cecd64130c0 Mon Sep 17 00:00:00 2001 From: Jeroen Ooms Date: Sun, 1 Sep 2019 01:06:00 +0200 Subject: [PATCH] remove jags --- ci-build.sh | 6 ++++++ ci-library.sh | 8 ++++++++ mingw-w64-jags/{PKGBUILD => DISABLED} | 1 + 3 files changed, 15 insertions(+) rename mingw-w64-jags/{PKGBUILD => DISABLED} (96%) diff --git a/ci-build.sh b/ci-build.sh index e7030a34dc..80cf1ade73 100755 --- a/ci-build.sh +++ b/ci-build.sh @@ -9,6 +9,12 @@ source 'ci-library.sh' deploy_enabled && mkdir artifacts deploy_enabled && mkdir sourcepkg +# Remove packages +deploy_enabled && cd artifacts +execute 'Removing JAGS from repository' remove_from_repository "${PACMAN_REPOSITORY:-ci-build}" "jags" +success 'Package removal successful' +exit 0 + # Depending on if this is an rtools40 or msys64 installation: if [[ $(cygpath -m /) == *"rtools40"* ]]; then # rtools40: enable upstream msys2 (but keep rtools-base as primary) diff --git a/ci-library.sh b/ci-library.sh index 7b1a3a9d8f..17989729d3 100644 --- a/ci-library.sh +++ b/ci-library.sh @@ -165,6 +165,14 @@ create_pacman_repository() { repo-add "${name}.db.tar.xz" *.pkg.tar.xz } +# Remove from repository +remove_from_repository() { + local name="${1}" + local package="${2}" + _download_previous "${name}".{db,files}{,.tar.xz} || return 1 + repo-remove "${name}.db.tar.xz" "${MINGW_PACKAGE_PREFIX}-${package}" +} + # Deployment is enabled deploy_enabled() { test -n "${BUILD_URL}" || return 1 diff --git a/mingw-w64-jags/PKGBUILD b/mingw-w64-jags/DISABLED similarity index 96% rename from mingw-w64-jags/PKGBUILD rename to mingw-w64-jags/DISABLED index 506b1b8137..d49746b287 100644 --- a/mingw-w64-jags/PKGBUILD +++ b/mingw-w64-jags/DISABLED @@ -1,4 +1,5 @@ # Maintainer: Jeroen Ooms +# This doesn't work yet, disable to prevent deployment. _realname=jags pkgbase=mingw-w64-${_realname}