summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/configuration.cc
Commit message (Collapse)AuthorAgeFilesLines
* cleanup headers and especially #includes everywhereDavid Kalnischkies2014-03-131-3/+10
| | | | | | | | Beside being a bit cleaner it hopefully also resolves oddball problems I have with high levels of parallel jobs. Git-Dch: Ignore Reported-By: iwyu (include-what-you-use)
* warning: extra ‘;’ [-Wpedantic]David Kalnischkies2014-03-131-2/+1
| | | | | Git-Dch: Ignore Reported-By: gcc -Wpedantic
* add default and override handling for Cnf::FindVectorDavid Kalnischkies2014-03-131-2/+12
| | | | | | Automatically handle the override of list options via its parent value which can even be a comma-separated list of values. It also adds an easy way of providing a default for the list.
* * lp:~mvo/apt/config-clear:Michael Vogt2013-08-151-0/+12
| | | | | | | - support Configuration.Clear() for a clear of the entire configuration Conflicts: debian/changelog
* fix off-by-one error and do not use magic constant of 100 when checking ↵Michael Vogt2013-07-251-1/+1
| | | | StackPost
* various simple changes to fix cppcheck warningsDavid Kalnischkies2013-03-101-1/+1
|
* /dev/null is a special absolute path as it has no subdirectoriesDavid Kalnischkies2012-04-231-0/+9
|
* normalize a bit by replacing // and /./ with / in FindFileDavid Kalnischkies2012-04-231-30/+38
|
* * apt-pkg/contrib/configuration.cc:David Kalnischkies2012-04-221-8/+64
| | | - add a more versatile Dump() method
* * apt-pkg/contrib/configuration.cc:David Kalnischkies2012-01-301-2/+8
| | | | | - do not stop parent transversal in FindDir if the value is empty See http://lists.debian.org/deity/2012/01/msg00053.html , too.
* * apt-pkg/contrib/configuration.cc:Michael Vogt2011-10-051-4/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | - fix double delete (LP: #848907) - ignore only the invalid regexp instead of all options * apt-pkg/acquire-item.h, apt-pkg/deb/debmetaindex.cc: - fix fetching language information by adding OptionalSubIndexTarget * methods/https.cc: - cleanup broken downloads properly * ftparchive/cachedb.cc: - fix buffersize in bytes2hex * apt-pkg/deb/deblistparser.cc: - fix crash when the dynamic mmap needs to be grown in LoadReleaseInfo (LP: #854090)
| * * apt-pkg/contrib/configuration.cc:Michael Vogt2011-09-131-4/+5
| | | | | | | | - fix double delete (LP: #848907) - ignore only the invalid regexp instead of all options
* | merge with debian/experimentalDavid Kalnischkies2011-09-131-4/+4
|\ \
| * | cppcheck complains about some possible speed improvements which could beDavid Kalnischkies2011-08-111-3/+3
| |/ | | | | | | | | | | done on the mirco-optimazation level, so lets fix them: (performance) Possible inefficient checking for emptiness. (performance) Prefer prefix ++/-- operators for non-primitive types.
| * apt-pkg/contrib/configuration.cc: revert Configuration::Set() ABI breakMichael Vogt2011-07-151-1/+1
| |
* | reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies2011-09-131-1/+4
|/
* * apt-pkg/init.cc:David Kalnischkies2011-07-061-1/+14
| | | - use CndSet in pkgInitConfig (Closes: #629617)
* * apt-pkg/contrib/configuration.cc:David Kalnischkies2010-08-281-3/+11
| | | | - fix autoremove by using correct config-option name and don't make faulty assumptions in error handling (Closes: #594689)
* - use the new MatchAgainstConfig for the DefaultRootSetFuncDavid Kalnischkies2010-06-261-0/+43
| | | | * apt-pkg/contrib/configuration.{cc,h}: - add a wrapper to match strings against configurable regex patterns
* * apt-pkg/contrib/configuration.cc:David Kalnischkies2010-04-241-0/+2
| | | - error out if #clear directive has no argument
* Fix the newly introduced method GetListOfFilesInDir to not accept everyDavid Kalnischkies2010-01-161-1/+1
| | | | | | | | | | | | | | | | | file if no extension is enforced (= restore old behaviour). (Closes: #565213) This commit includes also: * apt-pkg/policy.cc: - accept also partfiles with "pref" file extension as valid * apt-pkg/contrib/configuration.cc: - accept also partfiles with "conf" file extension as valid * doc/apt.conf.5.xml: - reorder description and split out syntax - add partfile name convention (Closes: #558348) * doc/apt_preferences.conf.5.xml: - describe partfile name convention also here And a lovely test application of course.
* merge with lp:~mvo/apt/debian-sid to get 0.7.25.1 and my changes backDavid Kalnischkies2010-01-131-2/+2
|\
| * fix merge errorMichael Vogt2010-01-081-0/+2
| |
| * * French manpage translation updateMichael Vogt2010-01-081-39/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * spot & fix various typos in all manpages * German manpage translation update * cmdline/apt-cache.cc: - remove translatable marker from the "%4i %s\n" string * buildlib/po4a_manpage.mak: - instruct debiandoc to build files with utf-8 encoding * buildlib/tools.m4: - fix some warning from the buildtools * apt-pkg/acquire-item.cc: - add configuration PDiffs::Limit-options to not download too many or too big patches (Closes: #554349) * debian/control: - let all packages depend on ${misc:Depends} * share/*-archive.gpg: - remove the horrible outdated files. We already depend on the keyring so we don't need to ship our own version * cmdline/apt-key: - errors out if wget is not installed (Closes: #545754) - add --keyring option as we have now possibly many * methods/gpgv.cc: - pass all keyrings (TrustedParts) to gpgv instead of using only one trusted.gpg keyring (Closes: #304846) * methods/https.cc: - finally merge the rest of the patchset from Arnaud Ebalard with the CRL and Issuers options, thanks! (Closes: #485963)
* | Add a GetListOfFilesInDir() helper method which replaces the oldDavid Kalnischkies2010-01-031-37/+2
| | | | | | | | code copies used to load the various parts-files
* | another round of method hardening with const& in ConfigurationDavid Kalnischkies2009-11-251-12/+12
|/
* reintroduce #clear and #include in the config files,David Kalnischkies2009-09-071-3/+5
| | | | they there broken since 0.7.21 with the introduction of #-comments
* add a helper to easily get a vector of strings from the configurationDavid Kalnischkies2009-09-041-0/+19
|
* apt-pkg/contrib/configuration.cc: Fix a small memory leak inJulian Andres Klode2009-06-121-0/+1
| | | ReadConfigFile.
* [ABI break] support '#' in apt.conf and /etc/apt/preferencesMichael Vogt2009-06-091-1/+1
| | | (closes: #189866)
* Fix FindFile (and FindDir) so that the value of RootDir is applied to the ↵Daniel Burrows2009-03-061-2/+2
| | | | | | | | | 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.
* Improve the names used for the non-whitespace iterators.Daniel Burrows2008-04-011-6/+6
|
* Remove a debugging message that I left in by accident (if it ever triggers ↵Daniel Burrows2008-04-011-5/+0
| | | | the program is about to crash anyway).
* Improve some comments in the configuration parser.Daniel Burrows2008-04-011-4/+8
|
* Lift the 1024-character limit on configuration file lines.Daniel Burrows2008-04-011-49/+117
| | | | | | | | 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.
* When a line in a config file is too long, say which config file it is.Daniel Burrows2008-03-311-1/+2
|
* * Fix compilation warnings in apt-pkg/cdrom.cc andOtavio Salvador2007-12-271-1/+1
| | | apt-pkg/contrib/configuration.cc.
* * apt-pkg/contrib/configuration.cc:Otavio Salvador2007-12-161-1/+6
| | | | - if RootDir is set, then FindFile and FindDir will return paths relative to the directory stored in RootDir, closes: #456457.
* * Fix compilation warnings:Otavio Salvador2007-07-101-1/+1
| | | | | | | | | | - 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;
* * fix some warningsMichael Vogt2007-06-191-2/+3
|
* * remove all the remaining #pragma implementationMichael Vogt2007-06-081-3/+0
|
* * applied parts of the string speedup patch from debian #319377 (ABI change)Michael Vogt2005-11-231-13/+13
|
* * merged from mainMichael Vogt2005-08-091-2/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Bring consistency to the use of capitals in programs messagesChristian Perrier2005-03-061-1/+1
|
* * Increase length of line buffer in ReadConfigFile to 1...Arch Librarian2004-09-201-2/+6
| | | | | | | | 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)
* Mark the type abbrevation warning as translatableArch Librarian2004-09-201-2/+2
| | | | | | Author: mdz Date: 2003-07-26 00:27:36 GMT Mark the type abbrevation warning as translatable
* * Give a warning if an illegal type abbreviation is use...Arch Librarian2004-09-201-8/+12
| | | | | | | 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)
* Fix segfault in FindAny when /i is used, and there is n...Arch Librarian2004-09-201-2/+2
| | | | | | Author: doogie Date: 2002-11-09 19:52:03 GMT Fix segfault in FindAny when /i is used, and there is no default.
* _config->Dump is now inlined, and calls Dump(clog). Du...Arch Librarian2004-09-201-3/+3
| | | | | | | 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.
* PD licenseArch Librarian2004-09-201-1/+4
| | | | | | Author: jgg Date: 2002-09-14 05:28:38 GMT PD license