summaryrefslogtreecommitdiff
path: root/apt-pkg/orderlist.cc
Commit message (Collapse)AuthorAgeFilesLines
* Deprecate SPtrArray<T> and convert everyone to unique_ptr<T[]>Julian Andres Klode2015-08-131-11/+11
| | | | More standardization
* make all d-pointer * const pointersDavid Kalnischkies2015-08-101-1/+1
| | | | | | | | | | | | | | Doing this disables the implicit copy assignment operator (among others) which would cause hovac if used on the classes as it would just copy the pointer, not the data the d-pointer points to. For most of the classes we don't need a copy assignment operator anyway and in many classes it was broken before as many contain a pointer of some sort. Only for our Cacheset Container interfaces we define an explicit copy assignment operator which could later be implemented to copy the data from one d-pointer to the other if we need it. Git-Dch: Ignore
* cleanup headers and especially #includes everywhereDavid Kalnischkies2014-03-131-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)
* Fix typos in documentation (codespell)Michael Vogt2014-02-221-4/+4
|
* prefer Essentials over Removals in ordering scoreDavid Kalnischkies2013-06-091-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).
* rewrite pkgOrderList::DepRemove to stop incorrect immediate settingDavid Kalnischkies2013-06-091-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
* various simple changes to fix cppcheck warningsDavid Kalnischkies2013-03-101-1/+3
|
* fix a bunch of cppcheck "(warning) Member variable '<#>' is notDavid Kalnischkies2012-03-041-8/+6
| | | | initialized in the constructor." messages (no functional change)
* enable APT in unpack/configure ordering to handle loops as wellDavid Kalnischkies2011-09-141-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)
| * More inproved comments about loops.Christopher Baines2011-08-091-0/+2
| |
| * More changes to make imediate configuration work for all packages, Christopher Baines2011-07-141-2/+2
| | | | | | | | I have stolen the Loop flag from orderlist.cc as it didnt seem to use it anymore.
| * [ David Kalnischkies ]Christopher Baines2011-07-051-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
| * | The modification to orderlist.cc is from a patch DonKult (David) gave me, ↵Christopher Baines2011-07-021-0/+6
| | | | | | | | | | | | The modifications to the packagemanager should fix the test-provides-gone-with-upgrade testcase.
* | | merge with debian/sidDavid Kalnischkies2011-09-131-17/+53
|\ \ \
| * | | * apt-pkg/orderlist.cc:David Kalnischkies2011-08-241-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
| * | | print from their the visit came fromDavid Kalnischkies2011-08-231-11/+11
| | | |
* | | | merge with debian/experimentalDavid Kalnischkies2011-09-131-13/+13
|\| | |
| * | | fix a few more cppcheck performance and scope warningsDavid Kalnischkies2011-08-111-5/+5
| | | |
| * | | cppcheck complains about some possible speed improvements which could beDavid Kalnischkies2011-08-111-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.
* / | reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies2011-09-131-0/+2
|/ /
* / cherry pick from donkultMichael Vogt2011-06-281-0/+6
|/
* convert a lot of places to use IsNegative instead of checking by handDavid Kalnischkies2011-05-111-12/+4
| | | | for the three different dependencies
* * apt-pkg/orderlist.cc:David Kalnischkies2011-04-161-1/+1
| | | - let VisitRProvides report if the calls were successful
* Remove the "pseudopackage" handling of Architecture: all packages forDavid Kalnischkies2011-03-081-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
* * apt-pkg/orderlist.cc:David Kalnischkies2010-11-061-7/+27
| | | | - try fixing before removing even if the fix is hidden in a provides, hidden in the #590438 testcase
* configure also the replacement before remove by adding Immediate flagDavid Kalnischkies2010-07-291-0/+2
|
* * apt-pkg/orderlist.cc:David Kalnischkies2010-07-281-1/+76
| | | | - try to install another or-group member in DepRemove before breaking the or group (Closes: #590438)
* * apt-pkg/orderlist.cc:David Kalnischkies2010-06-101-1/+2
| | | | | - untouched packages are never missing * apt-pkg/packagemanager.cc: - packages that are not touched doesn't need to be unpacked
* Remove and Unpack operations should not be ignored for pseudo packages -David Kalnischkies2010-03-011-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.
* Add yet another pseudo package which isn't as pseudo as the others:David Kalnischkies2010-02-121-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.
* cleanup commit for trigger processing:David Kalnischkies2009-09-181-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.
* Add even more config options and try to handle configuration problemsDavid Kalnischkies2009-09-151-24/+50
| | | | | arising if we upgrade essential or predependencies which need to be configured before even unpacking packages depending on them.
* add the various foldmarkers in apt-pkg & cmdline (no code change)David Kalnischkies2009-06-301-8/+2
|
* Fix some typos in docs and translations (thanks to timeless, closes: 368665)Luca Bruno2008-10-031-1/+1
|
* * 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
| |
* | initial Breaks implementationIan Jackson2006-08-251-1/+16
|/
* G++3 fixes from RandolphArch Librarian2004-09-201-1/+5
| | | | | | Author: jgg Date: 2001-05-07 05:49:43 GMT G++3 fixes from Randolph
* Fixed minor configuration ordering froobleArch Librarian2004-09-201-2/+5
| | | | | | Author: jgg Date: 2001-04-27 04:47:58 GMT Fixed minor configuration ordering frooble
* Join with aliencodeArch Librarian2004-09-201-45/+74
| | | | | | Author: jgg Date: 2001-02-20 07:03:16 GMT Join with aliencode
* Minimal CD swapsArch Librarian2004-09-201-15/+71
| | | | | | Author: jgg Date: 2000-01-16 08:45:46 GMT Minimal CD swaps
* More fixesArch Librarian2004-09-201-4/+4
| | | | | | Author: jgg Date: 2000-01-16 05:36:17 GMT More fixes
* Fixed ordering error for unpacked thingsArch Librarian2004-09-201-5/+5
| | | | | | Author: jgg Date: 1999-11-04 06:05:02 GMT Fixed ordering error for unpacked things
* Daniel Jacobowitz's gcc 2.95 C++ patchArch Librarian2004-09-201-11/+11
| | | | | | Author: jgg Date: 1999-07-20 05:53:32 GMT Daniel Jacobowitz's gcc 2.95 C++ patch
* Oops in crictical handlingArch Librarian2004-09-201-2/+2
| | | | | | Author: jgg Date: 1999-07-19 01:49:44 GMT Oops in crictical handling
* A bit better install ordering w/cdsArch Librarian2004-09-201-7/+19
| | | | | | Author: jgg Date: 1999-07-12 03:40:37 GMT A bit better install ordering w/cds
* Fixed handling of missing filesArch Librarian2004-09-201-4/+23
| | | | | | Author: jgg Date: 1999-07-04 23:22:53 GMT Fixed handling of missing files
* CD swapping supportArch Librarian2004-09-201-33/+71
| | | | | | Author: jgg Date: 1999-07-03 03:10:35 GMT CD swapping support
* SyncArch Librarian2004-09-201-1/+2
| | | | | | Author: jgg Date: 1998-09-26 05:34:18 GMT Sync
* First draft of make system and name change to apt-pkgArch Librarian2004-09-201-6/+6
| | | | | | Author: jgg Date: 1998-07-12 23:58:20 GMT First draft of make system and name change to apt-pkg