[xen-tools-discuss] setup-apt should ignore backup files in apt.conf.d

From: Simon Hürlimann <simon.huerlimann_at_huerlisi.ch>
Date: Fri, 02 Jan 2009 00:37:49 +0100
Hi again

The 20-setup-apt hooks in edgy,debian, and dapper are too keen on
finding a Proxy setting even when commented out or occuring in backup files.

Here's a possible fix:

#
#  Process any of the present apt-conf setup lines.
#
-for i in /etc/apt/apt.conf /etc/apt/apt.conf.d/* ; do
+for i in /etc/apt/apt.conf $(run-parts --list /etc/apt/apt.conf.d) ; do

-        grep -i HTTP::Proxy $i >${prefix}/etc/apt/apt.conf.d/proxy-guess
+        grep -v '^//' $i | grep -i HTTP::Proxy
>>${prefix}/etc/apt/apt.conf.d/proxy-guess
[...]
done

Simon
Received on Thu Jan 01 2009 - 23:38:13 GMT

Mailing list overview.