summaryrefslogtreecommitdiff
path: root/apt-pkg/policy.cc
Commit message (Collapse)AuthorAgeFilesLines
* specific pins below 1000 cause downgradesDavid Kalnischkies2013-08-081-7/+18
| | | | | | | | | | | | | | | | | | | We start your quest by using the version of a package applying to a specific pin, but that version could very well be below the current version, which causes APT to suggest a downgrade even if it is advertised that it never does this below 1000. Its of course questionable what use a specific pin on a package has which has a newer version already installed, but reacting with the suggestion of a downgrade is really not appropriated (even if its kinda likely that this is actually the intend the user has – it could just as well be an outdated pin) and as pinning is complicated enough we should atleast do what is described in the manpage. So we look out for the specific pin and if we haven't seen it at the moment we see the installed version, we ignore the specific pin. Closes: 543966
* * apt-pkg/policy.cc:David Kalnischkies2012-10-131-23/+26
| | | | - match pins with(out) an architecture as we do on the commandline (partly fixing #687255, b= support has to wait for jessie)
* merge with my debian-sid branchDavid Kalnischkies2011-10-301-1/+2
|\
| * * apt-pkg/policy.cc:David Kalnischkies2011-10-041-1/+2
| | | | | | - accept generic release pin expressions again in -t (Closes: #644166)
* | merge with debian/experimentalDavid Kalnischkies2011-09-131-9/+23
|\ \
| * | merged from the debian-sid branchMichael Vogt2011-08-151-7/+7
| |\|
| | * 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.
| * | * merged latest fixes from debian-sidMichael Vogt2011-07-281-2/+16
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * apt-pkg/contrib/sha1.cc: - fix illegally casts of on-stack buffer to a type requiring more alignment than it has resulting in segfaults on sparc (Closes: #634696) * apt-pkg/contrib/cdromutl.cc: - fix escape problem when looking for the mounted devices * apt-pkg/contrib/strutl.{h,cc}, test/libapt/strutil_test.cc: - add new DeEscapeString() similar to DeQuoteString but unescape character escapes like \0XX and \xXX (plus added test) * refresh po/* * cmdline/apt-get.cc: - fix missing download progress in apt-get download - do not require unused partial dirs in 'source' (Closes: #633510) - buildconflicts effect all architectures - implement MultiarchCross for build-dep and source (Closes: #632221) * cmdline/apt-key: - use a tmpfile instead of /etc/apt/secring.gpg (Closes: #632596) * debian/apt.postinst: - remove /etc/apt/secring.gpg if it is an empty file * doc/apt-cache.8.xml: - apply madison typofix from John Feuerstein, thanks! (Closes: #633455) * apt-pkg/policy.cc: - emit an error on unknown APT::Default-Release value (Closes: #407511) * apt-pkg/aptconfiguration.cc: - ensure that native architecture is if not specified otherwise the first architecture in the Architectures vector * apt-pkg/deb/deblistparser.cc: - Strip only :any and :native if MultiArch should be stripped as it is save to ignore them in non-MultiArch contexts but if the dependency is a specific architecture (and not the native) do not strip
| | * * apt-pkg/policy.cc:David Kalnischkies2011-07-161-2/+16
| | | | | | | | | - emit an error on unknown APT::Default-Release value (Closes: #407511)
* | | reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies2011-09-131-2/+4
|/ /
* | merged from debian-sidMichael Vogt2011-06-301-20/+44
|\|
| * * 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:
* | * Implement EDSP in libapt-pkg so that all front-ends whichDavid Kalnischkies2011-05-171-0/+4
|\ \ | |/ |/| | | | | | | | | use the internal resolver can now be used also with external ones as the usage is hidden in between the old API * provide two edsp solvers in apt-utils: - 'dump' to quickly output a complete scenario and - 'apt' to use the internal as an external resolver
| * add a first round of stuff needed for talking between APT and solversDavid Kalnischkies2011-03-301-0/+4
| | | | | | | | | | | | based on a very early draft for EDSP by Stefano APT can now write a scenario as well as load most stuff from it.
* | 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