summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/configuration.cc
AgeCommit message (Collapse)Author
2009-11-25another round of method hardening with const& in ConfigurationDavid Kalnischkies
2009-09-07reintroduce #clear and #include in the config files,David Kalnischkies
they there broken since 0.7.21 with the introduction of #-comments
2009-09-04add a helper to easily get a vector of strings from the configurationDavid Kalnischkies
2009-06-12apt-pkg/contrib/configuration.cc: Fix a small memory leak inJulian Andres Klode
ReadConfigFile.
2009-06-09[ABI break] support '#' in apt.conf and /etc/apt/preferencesMichael Vogt
(closes: #189866)
2009-03-06Fix FindFile (and FindDir) so that the value of RootDir is applied to the ↵Daniel Burrows
default if no value is found. Previously FindFile("Dir::etc", "/etc") would use RootDir if a value existed for "Dir::etc"; otherwise it would go ahead and use "/etc", ignoring RootDir. Of course, this made RootDir fairly useless; it has now been fixed.
2008-04-01Improve the names used for the non-whitespace iterators.Daniel Burrows
2008-04-01Remove a debugging message that I left in by accident (if it ever triggers ↵Daniel Burrows
the program is about to crash anyway).
2008-04-01Improve some comments in the configuration parser.Daniel Burrows
2008-04-01Lift the 1024-character limit on configuration file lines.Daniel Burrows
To do this, I changed the configuration parser so that instead of reading the line into a buffer and munging it in-place, it builds a string containing the current line (via successive getline() calls) and then walks down that string. Instead of skipping comments and whitespace by erasing them from the buffer, the new code just skips over them.
2008-03-31When a line in a config file is too long, say which config file it is.Daniel Burrows
2007-12-27* Fix compilation warnings in apt-pkg/cdrom.cc andOtavio Salvador
apt-pkg/contrib/configuration.cc.
2007-12-16* apt-pkg/contrib/configuration.cc:Otavio Salvador
- if RootDir is set, then FindFile and FindDir will return paths relative to the directory stored in RootDir, closes: #456457.
2007-07-10 * Fix compilation warnings:Otavio Salvador
- apt-pkg/contrib/configuration.cc: wrong argument type; - apt-pkg/deb/dpkgpm.cc: wrong signess; - apt-pkg-acquire-item.cc: wrong signess and orderned initializers; - methods/https.cc: - type conversion; - unused variable; - changed SetupProxy() method to void;
2007-06-19* fix some warningsMichael Vogt
2007-06-08* remove all the remaining #pragma implementationMichael Vogt
2005-11-23* applied parts of the string speedup patch from debian #319377 (ABI change)Michael Vogt
2005-08-09* merged from mainMichael Vogt
Patches applied: * apt@packages.debian.org/apt--main--0--patch-106 Restore lost changelog entries * apt@packages.debian.org/apt--main--0--patch-107 Merge michael.vogt@ubuntu.com--2005/apt--progress-reporting--0 * apt@packages.debian.org/apt--main--0--patch-108 Merge michael.vogt@ubuntu.com--2005/apt--progress-reporting--0 * apt@packages.debian.org/apt--main--0--patch-109 Merge michael.vogt@ubuntu.com--2005/apt--progress-reporting--0 * apt@packages.debian.org/apt--main--0--patch-110 Merge michael.vogt@ubuntu.com--2005/apt--progress-reporting--0 * michael.vogt@ubuntu.com--2005/apt--fixes--0--patch-5 * merged with apt--main--0 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--base-0 tag of apt@packages.debian.org/apt--main--0--patch-85 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-1 * inital proof of concept code, understands what dpkg tells it already * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-2 * progress reporting works now * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-3 * added "APT::Status-Fd" variable * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-4 * do i18n now too * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-5 * define N_(x) if it is not defined already * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-6 * PackageManager::DoInstall(int status_fd) added (does not break the ABI) * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-7 * merged with apt--fixes--0 to make it build again * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-8 * added support for "error" and "conffile-prompt" messages from dpkg * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-9 merge with main * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-10 * use sizeof() for all snprintf() uses; fix a potential line break problem in the status reading code; changed the N_() to _() calls * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-11 * added APT::KeepFDs configuration list for file descriptors that apt should leave open (needed for various frontends like debconf, synaptic) * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-12 * fixed a API breakage * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-13 * doc added, should be releasable now * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-14 * merged with apt--main--0 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-15 * more source comments, added Debug::DpkgPM debug code to inspect the dpkg<->apt communication, broke the abi (ok with matt) * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-16 * the progress reporting has it's own "Debug::pkgDPkgProgressReporting" debug variable now * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-17 * merged PackageOps and TranslatedPackageOps into a single Map with the new DpkgState struct * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-18 * clear the APT::Keep-Fds configuration when it's no longer needed * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-19 * rewrote the reading from dpkg so that it never blocks * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-20 * merged the two status arrays into one * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-21 * added support for download progress reporting too (for Kamion and base-config) * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-22 * ABI break; added Configuration::Clear(string List, {int,string} value) added (to remove a single Value from a list); test/conf_clear.cc added * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-23 * remvoed a debug string * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-24 * soname changed, fixed a bug in the parsing code when dpkg send the same state more than once (at the end) * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-25 * merged with apt@packages.debian.org/apt--main--0, added changelog entry for the 0.6.40.1 upload * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-26 * fix a bug when out-of-order states are send from dpkg * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-27 * changelog update * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-28 * a real changelog entry now * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-29 * changelog finalized * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-30 * propper (and sane) support for pmerror and pmconffile added
2005-03-06Bring consistency to the use of capitals in programs messagesChristian Perrier
2004-09-20* Increase length of line buffer in ReadConfigFile to 1...Arch Librarian
Author: mdz Date: 2004-04-30 04:00:15 GMT * Increase length of line buffer in ReadConfigFile to 1024 chars; detect if a line is longer than that and error out (Closes: #244835)
2004-09-20Mark the type abbrevation warning as translatableArch Librarian
Author: mdz Date: 2003-07-26 00:27:36 GMT Mark the type abbrevation warning as translatable
2004-09-20* Give a warning if an illegal type abbreviation is use...Arch Librarian
Author: mdz Date: 2003-07-25 20:45:13 GMT * Give a warning if an illegal type abbreviation is used when looking up a configuration item (Closes: #168453)
2004-09-20Fix segfault in FindAny when /i is used, and there is n...Arch Librarian
Author: doogie Date: 2002-11-09 19:52:03 GMT Fix segfault in FindAny when /i is used, and there is no default.
2004-09-20_config->Dump is now inlined, and calls Dump(clog). Du...Arch Librarian
Author: doogie Date: 2002-11-09 17:11:25 GMT _config->Dump is now inlined, and calls Dump(clog). Dump(ostream&) is now exported. Fixed apt-config dump sending to stderr.
2004-09-20PD licenseArch Librarian
Author: jgg Date: 2002-09-14 05:28:38 GMT PD license
2004-09-20G++3 fixes from RandolphArch Librarian
Author: jgg Date: 2001-05-14 05:47:30 GMT G++3 fixes from Randolph
2004-09-20MOO DOOGIEArch Librarian
Author: jgg Date: 2001-04-29 05:24:42 GMT MOO DOOGIE
2004-09-20run-parts. Closes: #94286Arch Librarian
Author: jgg Date: 2001-04-27 05:49:34 GMT run-parts. Closes: #94286
2004-09-20Pedantic fixesArch Librarian
Author: jgg Date: 2001-03-11 07:22:19 GMT Pedantic fixes
2004-09-20JoeyH's dpkg::preconfig not working.Arch Librarian
Author: jgg Date: 2001-03-05 21:09:12 GMT JoeyH's dpkg::preconfig not working.
2004-09-20Fixed the resetting of Dir with "dir {};". Closes: #87323Arch Librarian
Author: jgg Date: 2001-03-04 00:44:35 GMT Fixed the resetting of Dir with "dir {};". Closes: #87323
2004-09-20Ignore .* for configuration directory processing. Close...Arch Librarian
Author: jgg Date: 2001-03-03 23:29:55 GMT Ignore .* for configuration directory processing. Closes: #86923
2004-09-20Join with aliencodeArch Librarian
Author: jgg Date: 2001-02-20 07:03:16 GMT Join with aliencode
2004-09-20More fixesArch Librarian
Author: jgg Date: 2000-01-16 05:36:17 GMT More fixes
2004-09-20Fixed a bug with deep sub sections..Arch Librarian
Author: jgg Date: 1999-07-02 23:17:00 GMT Fixed a bug with deep sub sections..
2004-09-20Moved strutl.hArch Librarian
Author: jgg Date: 1999-01-27 02:48:52 GMT Moved strutl.h
2004-09-20Dsync mergeArch Librarian
Author: jgg Date: 1999-01-18 06:20:07 GMT Dsync merge
2004-09-20Working acquire codeArch Librarian
Author: jgg Date: 1998-11-05 07:21:35 GMT Working acquire code
2004-09-20SyncArch Librarian
Author: jgg Date: 1998-10-30 07:53:30 GMT Sync
2004-09-20SyncArch Librarian
Author: jgg Date: 1998-10-22 04:56:38 GMT Sync
2004-09-20Start on acquire stuffArch Librarian
Author: jgg Date: 1998-10-20 02:39:12 GMT Start on acquire stuff
2004-09-20SyncArch Librarian
Author: jgg Date: 1998-10-02 04:39:42 GMT Sync
2004-09-20SyncArch Librarian
Author: jgg Date: 1998-09-26 05:34:18 GMT Sync
2004-09-20SyncArch Librarian
Author: jgg Date: 1998-09-22 05:30:24 GMT Sync
2004-09-20First draft of make system and name change to apt-pkgArch Librarian
Author: jgg Date: 1998-07-12 23:58:20 GMT First draft of make system and name change to apt-pkg
2004-09-20Config class and source listArch Librarian
Author: jgg Date: 1998-07-09 05:12:27 GMT Config class and source list
2004-09-20SyncArch Librarian
Author: jgg Date: 1998-07-07 04:17:00 GMT Sync