From b34d4b4745e4f7ead090a03e5efe35bd2e2e82b5 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Fri, 26 Mar 2010 15:35:36 +0100 Subject: [PATCH] * ftparchive/apt-ftparchive.cc: - Read default configuration (Closes: #383257) --- debian/NEWS | 7 +++++++ debian/changelog | 2 ++ ftparchive/apt-ftparchive.cc | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/debian/NEWS b/debian/NEWS index a12f1a4f8..775dc9458 100644 --- a/debian/NEWS +++ b/debian/NEWS @@ -1,3 +1,10 @@ +apt (0.7.26~exp3) experimental; urgency=low + + * apt-ftparchive now reads the standard configuration files in + /etc/apt/apt.conf and /etc/apt/apt.conf.d. + + -- Julian Andres Klode Fri, 26 Mar 2010 15:34:16 +0100 + apt (0.7.24) unstable; urgency=low * Already included in the last version but now with better documentation diff --git a/debian/changelog b/debian/changelog index fc5d0f90c..133d3874d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -20,6 +20,8 @@ apt (0.7.26~exp3) UNRELEASED; urgency=low * apt-pkg/policy.cc: - Always return a candidate if there is at least one version pinned > 0 (Closes: #512318) + * ftparchive/apt-ftparchive.cc: + - Read default configuration (Closes: #383257) * debian/rules: - Fix the libraries name to be e.g. libapt-pkg4.9 instead of libapt-pkg-4.9. diff --git a/ftparchive/apt-ftparchive.cc b/ftparchive/apt-ftparchive.cc index f1a182e52..5456dd474 100644 --- a/ftparchive/apt-ftparchive.cc +++ b/ftparchive/apt-ftparchive.cc @@ -925,7 +925,7 @@ int main(int argc, const char *argv[]) // Parse the command line and initialize the package library CommandLine CmdL(Args,_config); - if (CmdL.Parse(argc,argv) == false) + if (pkgInitConfig(*_config) == false || CmdL.Parse(argc,argv) == false) { _error->DumpErrors(); return 100; -- 2.45.2