Package: apt-cacher-ng
Version: 0.9.3.1-1
Severity: important

Default behavior of CacheDir on Debian is really weird and annoying.
Steps to reproduce:
* Install apt-cacher-ng typical way ("apt-get install apt-cacher-ng") on sid. 
You will notice that no interactive debconf will be run during this
process
* Change CacheDir in /etc/apt-cacher-ng/acng.conf
* Restart apt-cacher-ng

You will see apt-cacher-ng will not pick up this new CacheDir and will use 
default ( /var/cache/apt-cacher-ng ) instead.

At first I didn't understand root of the problem. Then I finally understand it, 
this took significant time.

After trying to reproduce the bug in clean container, I suddenly decided to use 
instructions in acng.conf.
Instructions read: "THIS FILE IS MAYBE JUST ONE OF MANY CONFIGURATION FILES IN 
THIS DIRECTORY". I looked at /etc/apt-cacher-ng and found
zz_debconf.conf . This file overrides CacheDir.

So,
* Straight-forward way of changing CacheDir doesn't work. Yes, you put big fat 
warning into acng.conf, but I think nobody will actually read it
* You override CacheDir in debconf. Okey, but then why you don't run 
interactive debconf during package install? If CacheDir is overrided, then
debconf should ask a user where he wants to put CacheDir. This question should 
be enabled under default settings. In current situation debconf
overrides CacheDir although user didn't ask for that

So, please don't override CacheDir on default or ask a user during installation 
where he wants to put CacheDir.

Reply via email to