Add test to check if aptitude is well removed in Jessie

This commit is contained in:
Gregory Colpart 2015-11-28 16:53:37 +01:00
parent e41af65080
commit e018379753

View file

@ -18,6 +18,7 @@ IS_LOGROTATECONF=1
IS_SYSLOGCONF=1
IS_DEBIANSECURITY=1
IS_APTITUDEONLY=1
IS_APTITUDE=1
IS_APTICRON=1
IS_USRRO=1
IS_TMPNOEXEC=1
@ -163,6 +164,10 @@ if [ -e /etc/debian_version ]; then
is_debianversion wheezy && test -e /usr/bin/apt-get && echo 'IS_APTITUDEONLY FAILED!'
fi
if [ "$IS_APTITUDE" = 1 ]; then
is_debianversion jessie && test -e /usr/bin/aptitude && echo 'IS_APTITUDEONLY FAILED!'
fi
if [ "$IS_APTICRON" = 1 ]; then
status="OK"
test -e /etc/cron.d/apticron || status="fail"