From d5316150512d9c0ebcb115be1a3279984202377f Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Mon, 10 Feb 2020 14:35:56 -0500 Subject: [PATCH] Add unpublish script for removing from testing repo refs #16015 Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- jenkins/unpublish.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 jenkins/unpublish.sh diff --git a/jenkins/unpublish.sh b/jenkins/unpublish.sh new file mode 100755 index 0000000..ce476a2 --- /dev/null +++ b/jenkins/unpublish.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +set -x + +VERNO=$1 + +if [[ -z "$VERNO" ]] ; + echo "Must provide version number to unpublish" + exit 1 +fi + +rm -f $(find /var/www/rpm.arvados.org/CentOS/7/testing -name *-${VERNO}*.rpm) +createrepo /var/www/rpm.arvados.org/CentOS/7/testing/x86_64 + +for fr in $(ls -d /var/lib/freight/apt/*-testing) ; do + rm -f $(find ${fr} -name *-${VERNO}*.deb) + freight cache ${fr} +done -- 2.30.2