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

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



On Tue, Sep 29, 2009 at 12:41:35AM +1000, Tim Connors wrote:
> 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.
jak@hp:~/Desktop/apt/jak$ apt-config dump | grep dirac
Acquire::http::Proxy "http://dirac:3142/";;

It seems to work. Have you tried upgrading to apt 0.7.24? Although
I don't see anything which should have fixed the bug in the
changelog, I am not able to reproduce your bug.



-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.



Reply to: