[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#548714: apt-get/aptitude etc silently ignoring #include?



On Mon, 28 Sep 2009, Julian Andres Klode wrote:

> On Mon, Sep 28, 2009 at 08:32:51PM +1000, Tim Connors wrote:
> > Package: apt
> > Version: 0.7.23.1
> > Severity: normal
> >
> > I just noticed apt was ignoring my proxy settings.  They're included
> > in a file that had been #included into apt.conf and had been working
> > relatively recently.
> >
> > strace -f reveals that it just completely ignores the #include
> > statement:
> >
> > 12716 stat("/etc/apt/apt.conf", {st_mode=S_IFREG|0644, st_size=422, ...}) = 0
> > 12716 open("/etc/apt/apt.conf", O_RDONLY) = 4
> > 12716 read(4, "#include \"/etc/apt/apt.conf.inc\""..., 8191) = 422
> > 12716 read(4, "", 8191)                 = 0
> > 12716 close(4)                          = 0
> >
> > I note that apt.conf(5) still says that #include is legal syntax.
> I cannot reproduce this in apt 0.7.24. Maybe you are missing a
> semicolon? APT's parser is not the best one available these days.
>
> It would help if you could attach the complete configuration
> file, so I can test it myself.

Attached both.

-- 
TimC
Heisenberg may have been here.
#include "/etc/apt/apt.conf.inc";

Acquire
{
  HTTP
  {
    Proxy::bugs.debian.org "http://localhost:8080";;
    // bug 529794:
    Pipeline-Depth "12345";
//    No-Cache "false";
//    No-Store "false";
//    Max-Age "86400";
//    No-Store "true";
  };
};

APT
{
  APT::Clean-Installed off;
}

//Apt::Default-Release "testing";

//following stops (?) the dynamic mmap out of room error message
APT::Cache-Limit 33554432;
Acquire::http::Proxy "http://dirac:3142/";;

Reply to: