summaryrefslogtreecommitdiff
path: root/bin/delete-packages-from-mirror
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2019-09-02 19:39:46 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2019-09-02 19:39:46 +0200
commit7ed7e45e2e808eb53c27591338cb162664643206 (patch)
tree15953bf1324fcb40b973ed7610ca30fb15272060 /bin/delete-packages-from-mirror
parent5e68c732d58dc542c86a4f61b5cc22af3a3582e2 (diff)
downloadbuilder-7ed7e45e2e808eb53c27591338cb162664643206.tar.xz
added a helper script 'delete-packages-from-mirror' to work around failing cleanup after db-update -p
Diffstat (limited to 'bin/delete-packages-from-mirror')
-rwxr-xr-xbin/delete-packages-from-mirror15
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/delete-packages-from-mirror b/bin/delete-packages-from-mirror
new file mode 100755
index 0000000..4348d33
--- /dev/null
+++ b/bin/delete-packages-from-mirror
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# delete packages from a list on the master mirror (in
+# case they are dangling after a db-update
+
+# shellcheck disable=SC2119,SC2120
+
+# shellcheck source=../lib/load-configuration
+. "${0%/*}/../lib/load-configuration"
+
+filelist=$1
+
+cat "$filelist" | sed 's/\(.*\)/rm pool\/\1/' |
+ failsafe_sftp
+