Skip to content

Commit

Permalink
hooks/apt: Allow expired keys to be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamandar committed Dec 21, 2024
1 parent a361836 commit a6872ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/conf_regen/10-apt
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Pin-Priority: -1

do_post_regen() {
# Purge expired keys (such as sury 95BD4743)
EXPIRED_KEYS="$(LC_ALL='en_US.UTF-8' apt-key list 2> /dev/null | grep -A1 'expired:' | grep -v 'expired\|^-' | sed 's/\s//g')"
EXPIRED_KEYS="$(LC_ALL='en_US.UTF-8' apt-key list 2> /dev/null | grep -A1 'expired:' | grep -v 'expired\|^-' | sed 's/\s//g' || true)"
for KEY in $EXPIRED_KEYS; do apt-key del "$KEY" 2> /dev/null; done

# Add sury key
Expand Down

0 comments on commit a6872ad

Please sign in to comment.