summaryrefslogtreecommitdiff
path: root/apt-pkg/orderlist.cc
AgeCommit message (Collapse)AuthorFilesLines
2014-03-13cleanup headers and especially #includes everywhereDavid Kalnischkies1-1/+5
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)
2014-02-22Fix typos in documentation (codespell)Michael Vogt1-4/+4
2013-06-09prefer Essentials over Removals in ordering scoreDavid Kalnischkies1-3/+2
Doing Removes early is good to have them out of the way, so they don't break 'Inst' or 'Conf' chains, but scoring them above Essentials means that we end up upgrading (many) less important packages before we handle big stuff like libc6 or debconf which not only fails if those less important packages have unannounced (strict) dependencies, but also leads to having these packages unconfigured for a long time triggering bugs in maintainer scripts for no good reason (#708831). So this commits sets the default value for remove scores to 100, which is below the one for essentials (200) and a lot lower than the previous default value (500).
2013-06-09rewrite pkgOrderList::DepRemove to stop incorrect immediate settingDavid Kalnischkies1-116/+103
Some squeeze → wheezy upgrades indicate that DepRemove runs amok in complicated setups as it wasn't correctly working with or-groups. Completely rewritten the check is now moving from or-group to or-group instead. The behavior should be the same as the code before, but (hopefully) with less bugs and more comments. Closes: 645713
2013-03-10various simple changes to fix cppcheck warningsDavid Kalnischkies1-1/+3
2012-03-04fix a bunch of cppcheck "(warning) Member variable '<#>' is notDavid Kalnischkies1-8/+6
initialized in the constructor." messages (no functional change)
2011-09-14enable APT in unpack/configure ordering to handle loops as wellDavid Kalnischkies1-3/+5
as tight dependencies between immediate packages better enabling also the possibility to mark all packages as immediate (at least Closes: #353290, #540227, #559733, #621836, #639290)
2011-09-13merge with debian/sidDavid Kalnischkies1-17/+53
2011-09-13merge with debian/experimentalDavid Kalnischkies1-13/+13
2011-09-13reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies1-0/+2
2011-08-24* apt-pkg/orderlist.cc:David Kalnischkies1-7/+43
- prefer visiting packages marked for deletion in VisitProvides if we are operating on a negative dependency so that we can deal early with the fallout of this remove
2011-08-23print from their the visit came fromDavid Kalnischkies1-11/+11
2011-08-11fix a few more cppcheck performance and scope warningsDavid Kalnischkies1-5/+5
2011-08-11cppcheck complains about some possible speed improvements which could beDavid Kalnischkies1-8/+8
done on the mirco-optimazation level, so lets fix them: (performance) Possible inefficient checking for emptiness. (performance) Prefer prefix ++/-- operators for non-primitive types.
2011-08-09More inproved comments about loops.Christopher Baines1-0/+2
2011-07-14More changes to make imediate configuration work for all packages, Christopher Baines1-2/+2
I have stolen the Loop flag from orderlist.cc as it didnt seem to use it anymore.
2011-07-05[ David Kalnischkies ]Christopher Baines1-1/+1
* doc/makefile: - 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: - remove invalid pkgcache.bin and rebuild it if possible - log reinstall commands in history.log * apt-pkg/init.cc: - don't set deprecated APT::Acquire::Translation, thanks Jörg Sommer! * cmdline/apt-config.cc: - show Acquire::Languages and APT::Architectures settings in 'dump' (Closes: 626739) * apt-pkg/orderlist.cc: - ensure that an old version of a package with a provides can never satisfy a dependency of a newer version of this package [ Michael Vogt ] * methods/mirror.cc: - ignore lines starting with "#" in the mirror file - ignore non http urls in the mirrors - append the dist (e.g. sid, wheezy) as a query string when asking for a suitable mirror * apt-pkg/deb/deblistparser.cc: - include all known languages when building the apt cache (LP: #794907) * apt-pkg/deb/debindexfile.cc: - remove some no longer valid checks for "TranslationsAvailable()" [ Kenneth Solbø Andersen ] * apt-pkg/deb/dpkgpm.cc: - set permissions of term.log to root.adm and 644 (LP: #404724) [ Chris Leick ] * various typo and syntax corrections in doc/*.xml [Chris Baines] * Began to fix DepAdd for imediate configuration of all packages
2011-07-02The modification to orderlist.cc is from a patch DonKult (David) gave me, ↵Christopher Baines1-0/+6
The modifications to the packagemanager should fix the test-provides-gone-with-upgrade testcase.
2011-06-28cherry pick from donkultMichael Vogt1-0/+6
2011-05-11convert a lot of places to use IsNegative instead of checking by handDavid Kalnischkies1-12/+4
for the three different dependencies
2011-04-16* apt-pkg/orderlist.cc:David Kalnischkies1-1/+1
- let VisitRProvides report if the calls were successful
2011-03-08Remove the "pseudopackage" handling of Architecture: all packages forDavid Kalnischkies1-4/+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
2010-11-06* apt-pkg/orderlist.cc:David Kalnischkies1-7/+27
- try fixing before removing even if the fix is hidden in a provides, hidden in the #590438 testcase
2010-07-29configure also the replacement before remove by adding Immediate flagDavid Kalnischkies1-0/+2
2010-07-28* apt-pkg/orderlist.cc:David Kalnischkies1-1/+76
- try to install another or-group member in DepRemove before breaking the or group (Closes: #590438)
2010-06-10* apt-pkg/orderlist.cc:David Kalnischkies1-1/+2
- untouched packages are never missing * apt-pkg/packagemanager.cc: - packages that are not touched doesn't need to be unpacked
2010-03-01Remove and Unpack operations should not be ignored for pseudo packages -David Kalnischkies1-5/+6
they should trigger the remove/unpack of the "all" package. Otherwise - as this package has no dependencies - it will be triggered to late. The Configuration step doesn't need it as the "all" package is a dependency of the pseudo-package, so it will be configured before the pseudo packages are tried: So at this step the ignorance is okay. Also IsMissing() should report the status of the all package if an pseudo package is checked instead of always reporting no-miss.
2010-02-12Add yet another pseudo package which isn't as pseudo as the others:David Kalnischkies1-0/+4
Arch all packages are now represented by arch depending packages which all depend on a package with the same name and the special arch "all". This packages has NO dependencies, but beside this the same information. It is the only package which has a size, the arch depending ones all have a zero size. While the arch depending pseudo packages are used for dependency resolution the arch "all" package is used for downloading and ordering of the package.
2009-09-18cleanup commit for trigger processing:David Kalnischkies1-10/+5
- remove the DPkg::NoConfTriggers - absolutely useless as we need TriggersPending already so we can use --no-triggers. - remove the Immediate-option from the example, it doesn't help much. - UnpackCritical uses DepUnPackPre with a D (on simple letter...) - the "smart" optimisation to skip A was not so smart - revert.
2009-09-15Add even more config options and try to handle configuration problemsDavid Kalnischkies1-24/+50
arising if we upgrade essential or predependencies which need to be configured before even unpacking packages depending on them.
2009-06-30add the various foldmarkers in apt-pkg & cmdline (no code change)David Kalnischkies1-8/+2
2008-10-03Fix some typos in docs and translations (thanks to timeless, closes: 368665)Luca Bruno1-1/+1
2007-06-08* Removed the more leftover #pragma interface/implementationMichael Vogt1-3/+0
closes: #306937 (thanks to Andreas Henriksson for the patch)
2007-06-08* remove all the remaining #pragma implementationMichael Vogt1-3/+0
2006-08-25initial Breaks implementationIan Jackson1-1/+16
2004-09-20G++3 fixes from RandolphArch Librarian1-1/+5
Author: jgg Date: 2001-05-07 05:49:43 GMT G++3 fixes from Randolph
2004-09-20Fixed minor configuration ordering froobleArch Librarian1-2/+5
Author: jgg Date: 2001-04-27 04:47:58 GMT Fixed minor configuration ordering frooble
2004-09-20Join with aliencodeArch Librarian1-45/+74
Author: jgg Date: 2001-02-20 07:03:16 GMT Join with aliencode
2004-09-20Minimal CD swapsArch Librarian1-15/+71
Author: jgg Date: 2000-01-16 08:45:46 GMT Minimal CD swaps
2004-09-20More fixesArch Librarian1-4/+4
Author: jgg Date: 2000-01-16 05:36:17 GMT More fixes
2004-09-20Fixed ordering error for unpacked thingsArch Librarian1-5/+5
Author: jgg Date: 1999-11-04 06:05:02 GMT Fixed ordering error for unpacked things
2004-09-20Daniel Jacobowitz's gcc 2.95 C++ patchArch Librarian1-11/+11
Author: jgg Date: 1999-07-20 05:53:32 GMT Daniel Jacobowitz's gcc 2.95 C++ patch
2004-09-20Oops in crictical handlingArch Librarian1-2/+2
Author: jgg Date: 1999-07-19 01:49:44 GMT Oops in crictical handling
2004-09-20A bit better install ordering w/cdsArch Librarian1-7/+19
Author: jgg Date: 1999-07-12 03:40:37 GMT A bit better install ordering w/cds
2004-09-20Fixed handling of missing filesArch Librarian1-4/+23
Author: jgg Date: 1999-07-04 23:22:53 GMT Fixed handling of missing files
2004-09-20CD swapping supportArch Librarian1-33/+71
Author: jgg Date: 1999-07-03 03:10:35 GMT CD swapping support
2004-09-20SyncArch Librarian1-1/+2
Author: jgg Date: 1998-09-26 05:34:18 GMT Sync
2004-09-20First draft of make system and name change to apt-pkgArch Librarian1-6/+6
Author: jgg Date: 1998-07-12 23:58:20 GMT First draft of make system and name change to apt-pkg
2004-09-20SyncArch Librarian1-0/+829
Author: jgg Date: 1998-07-07 04:17:00 GMT Sync