Add IS_OLDPUB to check for pub.evolix.net
This commit is contained in:
parent
152653d773
commit
7c40af199b
|
@ -4,6 +4,7 @@ and this project **does not adhere to [Semantic Versioning](http://semver.org/sp
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
* IS_OLDPUB: pub.evolix.net has been supersed by pub.evolix.org since Stretch
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
|
|
@ -193,6 +193,11 @@ check_debiansecurity() {
|
||||||
apt-cache policy | grep "\bl=Debian-Security\b" | grep "\bo=Debian\b" | grep --quiet "\bc=main\b"
|
apt-cache policy | grep "\bl=Debian-Security\b" | grep "\bo=Debian\b" | grep --quiet "\bc=main\b"
|
||||||
test $? -eq 0 || failed "IS_DEBIANSECURITY" "missing Debian-Security repository"
|
test $? -eq 0 || failed "IS_DEBIANSECURITY" "missing Debian-Security repository"
|
||||||
}
|
}
|
||||||
|
check_oldpub() {
|
||||||
|
# Look for enabled pub.evolix.net sources (supersed by pub.evolix.org since Stretch)
|
||||||
|
apt-cache policy | grep --quiet pub.evolix.net
|
||||||
|
test $? -eq 1 || failed "IS_OLDPUB" "Old pub.evolix.net repository enabled"
|
||||||
|
}
|
||||||
check_aptitude() {
|
check_aptitude() {
|
||||||
test -e /usr/bin/aptitude && failed "IS_APTITUDE" "aptitude may not be installed on Debian >=8"
|
test -e /usr/bin/aptitude && failed "IS_APTITUDE" "aptitude may not be installed on Debian >=8"
|
||||||
}
|
}
|
||||||
|
@ -1415,6 +1420,7 @@ main() {
|
||||||
test "${IS_LOGROTATECONF:=1}" = 1 && check_logrotateconf
|
test "${IS_LOGROTATECONF:=1}" = 1 && check_logrotateconf
|
||||||
test "${IS_SYSLOGCONF:=1}" = 1 && check_syslogconf
|
test "${IS_SYSLOGCONF:=1}" = 1 && check_syslogconf
|
||||||
test "${IS_DEBIANSECURITY:=1}" = 1 && check_debiansecurity
|
test "${IS_DEBIANSECURITY:=1}" = 1 && check_debiansecurity
|
||||||
|
test "${IS_OLDPUB:=1}" = 1 && check_oldpub
|
||||||
test "${IS_APTITUDE:=1}" = 1 && check_aptitude
|
test "${IS_APTITUDE:=1}" = 1 && check_aptitude
|
||||||
test "${IS_APTGETBAK:=1}" = 1 && check_aptgetbak
|
test "${IS_APTGETBAK:=1}" = 1 && check_aptgetbak
|
||||||
test "${IS_USRRO:=1}" = 1 && check_usrro
|
test "${IS_USRRO:=1}" = 1 && check_usrro
|
||||||
|
|
Loading…
Reference in a new issue