summaryrefslogtreecommitdiff
path: root/bin/delete-packages-from-mirror
blob: 4348d336083fe6fb49305a43dbffde34eda38f5b (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

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