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

Bug#88675: Configuration file reading broken



Package: apt
Version: 0.5.2
Severity: important
Tags: patch

After installing 0.5.2 (all was well with 0.5.0), some of the options in
apt.conf and apt.conf.d/* seem to be ignored (most notably, debconf and
apt-listchanges' DPkg::Pre-Install-Pkgs entries, but other things as well).
This appears to already be fixed in CVS, but it could break things unexpectedly
for many users, so I am reporting it here to publish the fix.

This patch from apt CVS seems to fix the problem:

--- apt-pkg/contrib/configuration.cc    2001/03/04 00:44:35     1.17
+++ apt-pkg/contrib/configuration.cc    2001/03/05 21:09:12     1.18
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: configuration.cc,v 1.17 2001/03/04 00:44:35 jgg Exp $
+// $Id: configuration.cc,v 1.18 2001/03/05 21:09:12 jgg Exp $
 /* ######################################################################
 
    Configuration Class
@@ -582,7 +582,8 @@
                  Word = Tag;
                  Tag = "";
               }
-              NoWord = true;
+              else
+                 NoWord = true;
            }
            if (strlen(Pos) != 0)
               return _error->Error(_("Syntax error %s:%u: Extra junk after value"),FName.c_str(),CurLine);

-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux mizar 2.4.2 #1 Sun Mar 4 23:34:37 EST 2001 i686

Versions of packages apt depends on:
ii  libc6                         2.2.2-1    GNU C Library: Shared libraries an
ii  libstdc++2.10-glibc2.2        1:2.95.3-6 The GNU stdc++ library            

-- 
 - mdz



Reply to: