diff options
author | Erich Eckner <git@eckner.net> | 2020-01-15 15:53:41 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-01-15 15:53:41 +0100 |
commit | 36f110b552f7b5779a8a8cb90b7829f258aafcb8 (patch) | |
tree | 6e4f62b33f09fd8e7df06b7c255e7de792e2ce70 /archPackagesUpdate | |
parent | 9aca318f35e61026f80e385c80a3ba30219c511d (diff) | |
download | archlinuxewe-36f110b552f7b5779a8a8cb90b7829f258aafcb8.tar.xz |
archPackagesUpdate: remove dangling symlinks with --cleanUnsigned, too
Diffstat (limited to 'archPackagesUpdate')
-rwxr-xr-x | archPackagesUpdate | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate index fdaa320b8..000158134 100755 --- a/archPackagesUpdate +++ b/archPackagesUpdate @@ -234,6 +234,7 @@ if ${cleanUnsigned} && ${aufRechenknecht}; then fi rm "$1" [ -e "$1.sig" ] && rm "$1.sig" + [ -h "$1.sig" ] && rm "$1.sig" }' printf ' @@ -243,8 +244,9 @@ if ${cleanUnsigned} && ${aufRechenknecht}; then [ -d "${arch}" ] || continue cd "${arch}" for paket in *.pkg.tar.xz *.pkg.tar.zst; do - [ ! -e "${paket}" ] && continue + [ ! -e "${paket}" ] && [ ! -h "${paket}" ] && continue [ -e "${paket}.sig" ] && continue + [ -h "${paket}.sig" ] && continue rmPaket "${paket}" done done' |