summaryrefslogtreecommitdiff
path: root/apt-pkg/policy.cc
Commit message (Collapse)AuthorAgeFilesLines
* cppcheck complains about some possible speed improvements which could beDavid Kalnischkies2011-08-111-7/+7
| | | | | | 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/policy.cc:David Kalnischkies2011-07-161-2/+16
| | | - emit an error on unknown APT::Default-Release value (Closes: #407511)
* * doc/makefile:Michael Vogt2011-06-301-20/+44
| | | | | | | | | | | | | | | | | | - create doxygen directory to avoid depending on magic (Closes: #628799) * cmdline/apt-key: - explicitly state that net-update is not supported if no url is set - require to be root for add, rm, update and net-update - clarify update vs. net-update in different distros (Closes: #632043) * debian/apt.symbols: - forgot 'mips' in the list for all architecture dependent symbols - comment out gcc-4.5 specific symbols as gcc-4.6 is now default - the symbol for PrintStatus() is architecture dependent * apt-pkg/policy.cc: - do not segfault in pinning if a package with this name doesn't exist. Thanks to Ferdinand Thommes for the report! - Defaults is a vector of Pin not of PkgPin - ensure that only the first specific stanza for a package is used - save all stanzas which had no effect in Unmatched - allow package:architecure in Package:
* simplify the code for wildcard pinning a bitDavid Kalnischkies2011-04-211-10/+7
|
* * apt-pkg/policy.cc:Julian Andres Klode2011-04-151-0/+15
| | | | - Allow pinning by glob() expressions, and regular expressions surrounded by slashes (the "/" character).
* Remove the "pseudopackage" handling of Architecture: all packages forDavid Kalnischkies2011-03-081-7/+0
| | | | | | | | | Multi-Arch; instead, Arch: all packages only satisfy dependencies for the native arch, except where the Arch: all package is declared Multi-Arch: foreign. (Closes: #613584) This has the sideeffect that arch:all packages internally show up as coming from the native arch - so packages with the architecture "all" doesn't exist any longer in the pkgcache
* * apt-pkg/cacheiterator.h:David Kalnischkies2011-01-131-0/+2
| | | - do not segfault if cache is not build (Closes: #254770)
* * apt-pkg/contrib/fileutl.cc:David Kalnischkies2011-01-121-1/+1
| | | | - add a RealFileExists method and check that your configuration files are real files to avoid endless loops if not (Closes: #604401)
* * apt-pkg/policy.cc:David Kalnischkies2010-09-141-4/+5
| | | | | | - support 100-pinning in Release file with ButAutomaticUpgrades as requested by the backports crew (Closes: #596097) * apt-pkg/deb/deblistparser.cc: - overrule NotAutomatic in case of ButAutomaticUpgrades
* * apt-pkg/policy.cc:David Kalnischkies2010-06-091-11/+21
| | | | - get the candidate right for a not-installed pseudo package if his non-pseudo friend is installed
* convert FileExists to DirectoryExists to check if the path is really aDavid Kalnischkies2010-05-061-2/+2
| | | | directory (and to have a better method name in the error message if not)
* merge from the debian-sid branchDavid Kalnischkies2010-05-041-1/+1
|\
| * merge from the mvo branchMichael Vogt2010-05-041-1/+1
| |\
| | * apt-pkg/policy.cc: yet another cout -> clog fixMichael Vogt2010-04-281-1/+1
| | |
* | | merged from lp:~donkult/apt/sidMichael Vogt2010-04-011-19/+22
|\ \ \ | |/ / |/| |
| * | Create Pins for all group members instead of only for native architectureDavid Kalnischkies2010-02-281-19/+22
| | |
| * | 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.
| * | Add a GetListOfFilesInDir() helper method which replaces the oldDavid Kalnischkies2010-01-031-34/+3
| | | | | | | | | | | | code copies used to load the various parts-files
* | | * apt-pkg/policy.cc:Julian Andres Klode2010-03-211-0/+14
| |/ |/| | | | | - Always return a candidate if there is at least one version pinned > 0 (Closes: #512318)
* | * apt-pkg/contrib/fileutl.cc:Michael Vogt2010-01-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fix the newly introduced method GetListOfFilesInDir to not accept every file if no extension is enforced (= restore old behaviour). (Closes: #565213) * 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 * apt-pkg/deb/dpkgpm.cc: - don't segfault if term.log file can't be opened. Thanks Sam Brightman for the patch! (Closes: #475770) * doc/*: - replace the per language addendum with a global addendum - add a explanation why translations include (maybe) english parts to the new global addendum (Closes: #561636) * apt-pkg/contrib/strutl.cc: - fix malloc asseration fail with ja_JP.eucJP locale in apt-cache search. Thanks Kusanagi Kouichi! (Closes: #548884)
* | * French manpage translation updateMichael Vogt2010-01-081-34/+3
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | * 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)
* display warnings instead of errors if the parts dirs doesn't existDavid Kalnischkies2009-07-151-1/+10
| | | | | Parts dirs are /etc/apt/{sources.list,apt.conf,preferences}.d (in the default setup)
* merge with lp:~mvo/apt/debian-sidDavid Kalnischkies2009-07-151-1/+50
|\
| * Support /etc/apt/preferences.d (Closes: #535512)Julian Andres Klode2009-07-061-1/+49
| |
* | versions with a pin of -1 shouldn't be a candidate (Closes: #355237)David Kalnischkies2009-07-011-0/+8
|/
* [ABI break] support '#' in apt.conf and /etc/apt/preferencesMichael Vogt2009-06-091-2/+16
| | | (closes: #189866)
* * Removed the more leftover #pragma interface/implementationMichael Vogt2007-06-081-3/+0
|\ | | | | closes: #306937 (thanks to Andreas Henriksson for the patch)
| * * remove all the remaining #pragma implementationMichael Vogt2007-06-081-3/+0
| |
* | * apt-pkg/policy.cc:Michael Vogt2007-04-201-1/+8
|/ | | - allow multiple packages (thanks to David Foerster)
* * Correct the section in apt_preferences(5) on interpre...Arch Librarian2004-09-201-3/+9
| | | | | | | | Author: mdz Date: 2003-08-12 00:17:37 GMT * Correct the section in apt_preferences(5) on interpreting priorities to show that zero is not a valid priority, and print a warning if such a pin is encountered in the preferences file (Closes: #204971)
* Fix some unlikely segfaultsArch Librarian2004-09-201-3/+3
| | | | | | Author: jgg Date: 2002-11-06 06:43:14 GMT Fix some unlikely segfaults
* Corrected array handlingArch Librarian2004-09-201-17/+5
| | | | | | Author: jgg Date: 2001-05-27 23:40:56 GMT Corrected array handling
* More ignoring of versionless packagesArch Librarian2004-09-201-7/+22
| | | | | | Author: jgg Date: 2001-05-27 05:36:04 GMT More ignoring of versionless packages
* 'apt-cache policy' preferences debug tool.Arch Librarian2004-09-201-17/+33
| | | | | | Author: jgg Date: 2001-04-29 05:13:51 GMT 'apt-cache policy' preferences debug tool.
* Core correctness patchesArch Librarian2004-09-201-2/+2
| | | | | | Author: jgg Date: 2001-03-13 05:23:42 GMT Core correctness patches
* Various fixesArch Librarian2004-09-201-7/+2
| | | | | | Author: jgg Date: 2001-03-05 02:43:28 GMT Various fixes
* Bug 87390Arch Librarian2004-09-201-2/+16
| | | | | | Author: jgg Date: 2001-03-03 23:27:24 GMT Bug 87390
* Join with aliencodeArch Librarian2004-09-201-0/+275
Author: jgg Date: 2001-02-20 07:03:16 GMT Join with aliencode