From 53c67a01579414f73251b6328126dad537e0363f Mon Sep 17 00:00:00 2001 From: Gregory Colpart Date: Mon, 10 Jul 2017 23:41:04 +0200 Subject: [PATCH] For Stretch (we don't use anymore listchanges) --- evocheck.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/evocheck.sh b/evocheck.sh index 6d20532..036686d 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -182,10 +182,12 @@ if [ -e /etc/debian_version ]; then if [ "$IS_APTITUDE" = 1 ]; then is_debianversion jessie && test -e /usr/bin/aptitude && echo 'IS_APTITUDE FAILED!' + is_debianversion stretch && test -e /usr/bin/aptitude && echo 'IS_APTITUDE FAILED!' fi if [ "$IS_APTGETBAK" = 1 ]; then is_debianversion jessie && test -e /usr/bin/apt-get.bak && echo 'IS_APTGETBAK FAILED!' + is_debianversion stretch && test -e /usr/bin/apt-get.bak && echo 'IS_APTGETBAK FAILED!' fi if [ "$IS_APTICRON" = 1 ]; then @@ -205,7 +207,7 @@ if [ -e /etc/debian_version ]; then fi if [ "$IS_LISTCHANGESCONF" = 1 ]; then - egrep "(which=both|confirm=1)" /etc/apt/listchanges.conf | wc -l | grep -q ^2$ || echo 'IS_LISTCHANGESCONF FAILED!' + is_debianversion stretch || ( test -e /etc/apt/listchanges.conf && egrep "(which=both|confirm=1)" /etc/apt/listchanges.conf | wc -l | grep -q ^2$ || echo 'IS_LISTCHANGESCONF FAILED!' ) fi if [ "$IS_CUSTOMCRONTAB" = 1 ]; then