summaryrefslogtreecommitdiff
path: root/bin/delete-packages-from-mirror
blob: 3674f07d190d92d29cd9a511059d66e1caa15c1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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

sed 's/\(.*\)/rm pool\/\1/' "$filelist" |
    failsafe_sftp