From 8aadbed4de3ca3ffb386d031467d1cb5ad231ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lecour?= Date: Fri, 22 Mar 2019 20:13:18 +0100 Subject: [PATCH] Don't limit to Lenny This test doesn't seem to be limited to Lenny, so we should check for all backports --- evocheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evocheck.sh b/evocheck.sh index 16380f8..40ff905 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -685,7 +685,7 @@ if is_debian; then if [ "$IS_SAMBAPINPRIORITY" = 1 ]; then if is_pack_samba; then if grep -qrE "^[^#].*backport" /etc/apt/sources.list{,.d}; then - priority=$(grep -E -A2 "^Package:.*samba" /etc/apt/preferences | grep -A1 "^Pin: release a=lenny-backports" | grep "^Pin-Priority:" | cut -f2 -d" ") + priority=$(grep -E -A2 "^Package:.*samba" /etc/apt/preferences | grep -A1 "^Pin: release a=.*-backports" | grep "^Pin-Priority:" | cut -f2 -d" ") test $priority -gt 500 || failed "IS_SAMBAPINPRIORITY" fi fi