Package: munin-plugins-core
Version: 2.0.21-2

Hi,
I'm using some system wide additional options in /etc/apt.conf:

---snip /etc/apt.conf ---
APT::Get::Show-Versions "true";
Debug::pkgDepCache::AutoInstall "true";
---snip /etc/apt.conf---

so I don't have to remember the -o switches each time I type 'apt-get upgrade'.

Unfortunately,

- the first one breaks the functionality of apt_all:
 it reports a pending number four times higher than the correct one -
 probably due to wrong parsing of the different output

- the second one can lead to cron email spam due to extra output:
like e.g.
---snip cron mail body---
  Installing ruby-xmlparser as Depends of apt-listbugs
  Installing ruby-unicode as Depends of apt-listbugs
  Installing libdebconfclient0 as Depends of base-passwd
---snip cron mail body---


My fix for this is to change the following line in apt_all:

from
my $apt="apt-get -u dist-upgrade --print-uris --yes -t $release |";
to
my $apt="apt-get -o Debug::pkgDepCache::AutoInstall=false -o APT::Get::Show-Versions=false -u dist-upgrade --print-uris --yes -t $release |";

That works, but is not the optimal solution (package upgrades).


So, I'd like to request a new feature for apt_all:
to mask potentially harmful system wide APT options like the ones above.


I'm not aware of any other official option to fix this, like e.g.
removing my options from apt.conf and placing them somewhere else,
or how to make apt_all aware of those.

In case I overlooked something: any hints or pointers appreciated.

Regards
Ingmar


--
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