Package: munin-plugins-core
Version: 2.0.6-4+deb7u1
Severity: minor

Hi,

when using the apt_all plugin the cronjob creates the following error messages, when only stable is configured:

root@testagent:~# /usr/share/munin/plugins/apt_all update 7200 1
E: The value 'testing' is invalid for APT::Default-Release as such a release is 
not available in the sources
E: The value 'unstable' is invalid for APT::Default-Release as such a release 
is not available in the sources
E: The value 'testing' is invalid for APT::Default-Release as such a release is 
not available in the sources
E: The value 'unstable' is invalid for APT::Default-Release as such a release 
is not available in the sources
Hit http://security.debian.org wheezy/updates Release.gpg
Hit http://security.debian.org wheezy/updates Release
Hit http://security.debian.org wheezy/updates/main amd64 Packages
Hit http://security.debian.org wheezy/updates/main Translation-en

This is because the plugin unconditionally tries to dist-upgrade to all values of @releases = ("stable", "testing","unstable"), which cannot be configured from the outside.

This also applies to 2.0.14-1~bpo70+1 and 2.0.16 seems to contain this too.

It would be nice to replace this with something like this:

my @releases = split(",", ($ENV{MUNIN_APT_RELEASES} || 
"stable,testing,unstable"))

which would allow easy configuration from the environment and plugin-conf.d.


Regards, David


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to