Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-02-15 08:52:41 +0100
committerErich Eckner <git@eckner.net>2019-02-15 08:52:41 +0100
commit5413ad5226ba8626467606d6803617750484f673 (patch)
treece589ab475abd0429df52828c3a8ff84af3c67cb /lib
parent5e1d35d85ecd5c58b9b2195dcb55b642a0bffdbf (diff)
lib/common-functions: remove_old_package_versions(): remove signatures from pool/, too
Diffstat (limited to 'lib')
-rwxr-xr-xlib/common-functions8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/common-functions b/lib/common-functions
index 772d889..70c5b49 100755
--- a/lib/common-functions
+++ b/lib/common-functions
@@ -259,9 +259,13 @@ remove_old_package_versions() {
# sftp-remove packages
if [ -s "${tmp_dir}/sftp-removes" ]; then
sed '
- s|^|rm "|
- s|$|"|
+ p
+ s/$/.sig/
' "${tmp_dir}/sftp-removes" | \
+ sed '
+ s|^|rm "|
+ s|$|"|
+ ' | \
failsafe_sftp
fi