Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
remove jags
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Aug 31, 2019
1 parent 8d815ec commit 5f54ea3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ci-build.sh
Expand Up @@ -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)
Expand Down
8 changes: 8 additions & 0 deletions ci-library.sh
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions mingw-w64-jags/PKGBUILD → mingw-w64-jags/DISABLED
@@ -1,4 +1,5 @@
# Maintainer: Jeroen Ooms <jeroenooms@gmail.com>
# This doesn't work yet, disable to prevent deployment.

_realname=jags
pkgbase=mingw-w64-${_realname}
Expand Down

0 comments on commit 5f54ea3

Please sign in to comment.