summaryrefslogtreecommitdiff
path: root/apt-pkg/depcache.cc
Commit message (Collapse)AuthorAgeFilesLines
* * apt-pkg/depcache.cc:David Kalnischkies2010-06-161-1/+31
| | | | - SetCandidateVer for all pseudo packages - SetReInstall for the "all" package of a pseudo package
* * apt-pkg/pkgcache.h:David Kalnischkies2010-06-091-9/+78
|\ | | | | | | | | | | | | | | | | - switch {,Install-}Size to unsigned long long - deal with long long, not with int to remove 2GB Limit (LP: #250909) - deprecate AddSize with Multiplier as it is unused and switch to boolean instead to handle the sizes more gracefully. - switch i{Download,Usr}Size from double to (un)signed long long * cmdline/apt-get.cc: - use unsigned long long instead of double to store values it gets
| * deprecate AddSize with Multiplier as it is unused and switch toDavid Kalnischkies2010-06-031-2/+71
| | | | | | boolean instead to handle the sizes more gracefully.
| * * apt-pkg/pkgcache.h:David Kalnischkies2010-06-031-7/+7
| | | | | | | | | | - switch {,Install-}Size to unsigned long long * apt-pkg/depcache.cc: - deal with long long, not with int to remove 2GB Limit (LP: #250909)
* | * apt-pkg/depcache.cc:David Kalnischkies2010-05-291-3/+3
| | | | | | - correct "Dangerous iterator usage." pointed out by cppcheck
* | try harder to find the other pseudo versions for autoremove multiarchDavid Kalnischkies2010-05-281-5/+2
| |
* | * apt-pkg/depcache.cc:David Kalnischkies2010-05-281-2/+5
| | | | | | | | - do the autoremove mark process also for required packages to handle these illegally depending on lower priority packages (Closes: #583517)
* | * apt-pkg/deb/debsystem.cc:David Kalnischkies2010-05-281-2/+2
|/ | | - add better config item for extended_states file
* * apt-pkg/depcache.cc:David Kalnischkies2010-05-111-10/+11
| | | - be doublesure that the killer query is empty before starting reinstall
* merge from the debian-sid branchDavid Kalnischkies2010-05-041-2/+2
|\
| * merge from the mvo branchMichael Vogt2010-05-041-2/+2
| |\
| | * * apt-pkg/depcache.cc:Michael Vogt2010-04-281-2/+2
| | | | | | | | | - fix incorrect std::cout usage for debug output
* | | replace »« with '' in the internal error msg to have ascii chars for gettextDavid Kalnischkies2010-05-031-1/+1
| | |
* | | rewrite the pseudo package reinstaller to be more intelligentDavid Kalnischkies2010-04-281-38/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in his package choices The previous implementation tried to install the package for arch A and if this fails B, C and so on. This results in wrong architecture choices for packages which depend on other pseudo packages, so he will now try to install the dependencies first before trying the package itself and only if this fails he tries the next architecture.
* | | * apt-pkg/depcache.cc:David Kalnischkies2010-04-031-2/+5
| | | | | | | | | - "reinstall" the correct version for a killed pseudo package
* | | merge MultiArch-ABI. We don't support MultiArch yet (as most other tools),David Kalnischkies2010-03-181-64/+308
|\ \ \ | | | | | | | | | | | | | | | | but we support the usage of the new ABI so libapt users can start to prepare for MultiArch (Closes: #536029)
| * | | Ensure that for each all package at least one pseudopackage is installedDavid Kalnischkies2010-03-141-9/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removing pseudo packages is cool so far, the problem is that we will remove with the not required removing so many pseudo packages that we will have after the remove a few packages with NO installed pseudo package (e.g. metapackages are good candidates) - so we will walk over all these packages and try to find a pseudopackage for this package we can install without breaking something.
| * | | We need to kill also pseudo packages which have no dependency, noDavid Kalnischkies2010-03-011-12/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | installed reverse dependency and which also doesn't provide something. They cause problems if this pseudo packages get new dependencies. As a consequence we also need to recheck the dependencies of a killed pseudo package (and especially the providers of these dependencies) to really kill all non required packages.
| * | | Enable the AutoRemover to talk "Multi-Arch" by marking all pseudoDavid Kalnischkies2010-02-271-63/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | packages in a group if one is marked. The auto-installed flag is from now on Architecture bound: A section without an architecture tag will be treated as applying to all architectures - the next write operation will take care of this by creating separate sections for the architectures.
| * | | [BREAK] merge MultiArch-ABI. We don't support MultiArch,David Kalnischkies2010-02-131-5/+92
| |\ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | but we support the usage of the new ABI so libapt users can start to prepare for MultiArch (Closes: #536029) MultiArch isn't ready for Primetime usage for now, but the branch has managed to be a NOP if used in SingleArch-mode so we can start to promote the use of the new MultiArchable API-extensions.
| | * | 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.
| | * | Pre-MultiArch a package which depends on a package with architecture "all"David Kalnischkies2010-02-101-5/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | can be sure that a package comeing in as a dependency of this package will be of the same architecture as itself (or all). We don't want to break this, so internal an arch all package is represented as many arch depending packages. The only problem we have now is that we only know that a arch all package is installed or not - we don't know for which architecture it was installed: So we will look at all these broken arch all pseudo packages and "remove" them.
* | | | * apt-pkg/depcache.cc:David Kalnischkies2010-03-141-7/+24
|/ / / | | | | | | | | | | | | - remove Auto-Installed information from extended_states together with the package itself (Closes: #572364)
* | / fix progress reporting while reading extended_states fileDavid Kalnischkies2010-02-071-3/+3
| |/ |/|
* | * apt-pkg/packagemanager.cc:Michael Vogt2009-12-021-1/+1
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | - add output about pre-depends configuring when debug::pkgPackageManager is used * methods/https.cc: - fix incorrect use of CURLOPT_TIMEOUT, closes: #497983, LP: #354972 thanks to Brian Thomason for the patch * apt-pkg/depcache.cc, apt-pkg/indexcopy.cc: - typo fix (LP: #462328) * cmdline/apt-key: - Emit a warning if removed keys keyring is missing and skip associated checks (LP: #218971)
| * * apt-pkg/depcache.cc, apt-pkg/indexcopy.cc:Michael Vogt2009-10-291-1/+1
| | | | | | | | - typo fix (LP: #462328)
* | With the introduction of the Is{Delete,Install}Ok hooks the apt flagDavid Kalnischkies2009-08-121-2/+2
|/ | | | | | | | --ignore-hold only works partly: The holds are to strongly enforced in these hooks - this commit brings the old (and expected) behaviour back. [apt-pkg/depcache.cc] - restore the --ignore-hold effect in the Is{Delete,Install}Ok hooks
* apt-pkg/depcache.cc:Michael Vogt2009-07-281-8/+2
| | | | | | | | - Call opProgress->Update() less often too avoid spending too much time in it (it shows up relatively high in the callgrind logs). But do call it more often than just for each percent so that the UI frontends can use the OpProgress::Update() calling to do e.g. UI updates
* Apply patch from Sami Liedes <sliedes@cc.hut.fi> to reduce theOtavio Salvador2009-07-251-13/+26
| | | | number of times we call progress bar updating and debugging configuration settings.
* * remove the MarkKeep calls if Is{Delete,Install}Ok false, becauseDavid Kalnischkies2009-07-071-11/+5
| | | | | | they have no effect anyway (thanks Daniel Burrows for noticing) * improve documentation of the Is{Delete,Install}Ok methods a bit * add the FromUser boolean to the debug output of the markers
* * add hook for MarkInstall and MarkDelete (closes: #470035)David Kalnischkies2009-06-301-18/+49
| | | | | | | | * honor the dpkg hold state in new Marker hooks (closes: #64141) Combine the proposed AutoInstOk and IsAutoInstallOk to more general hooks for MarkInstall (and another one for MarkDelete) with the same parameters as the call these hooks should check.
* add the various foldmarkers in apt-pkg & cmdline (no code change)David Kalnischkies2009-06-301-30/+24
|
* merge the AutoInstOk patch from debian-experimentalMichael Vogt2009-06-301-19/+16
|
* * support IsAutoInstallOk in the resolver tooMichael Vogt2009-06-291-1/+1
| | | * honor the dpkg hold state in IsAutoInstallOk (closes: #64141)
* merge r1797 from lp:~donkult/apt/experimentalMichael Vogt2009-06-291-8/+1
|
* add hook for auto-install (closes: #470035)Michael Vogt2009-06-291-0/+20
|
* * add depth information to the debug output and show what dependsMichael Vogt2009-06-291-13/+34
| | | | | type triggers a autoinst (closes: #458389) * add debug::pkgDepCache::Marker with more detailed debug output (closes: #87520)
* fix various -Wall warningsMichael Vogt2008-10-281-1/+1
|
* Fix typo in apt-pkg/depcache.ccLuca Bruno2008-10-111-1/+1
|
* * apt-pkg/depcache.cc:Michael Vogt2008-07-251-2/+3
| | | | | - when checking for new important deps, skip critical ones (closes: #485943)
* Improve the debugging of the auto-remove code.Daniel Burrows2008-04-271-2/+43
|
* Patch MarkInstall to follow currently satisfied Recommends even if they ↵Daniel Burrows2008-03-181-7/+29
| | | | | | | | aren't "new". (Closes: #470115) This handles situations where a recommendation's version requirement has been tightened. Instead of breaking the Recommends, the recommendee will be upgraded.
* * apt-pkg/depcache.cc:Michael Vogt2007-07-261-10/+27
| | | | | - support a list of sections for: APT::Install-Recommends-Sections APT::Never-MarkAuto-Sections
* * fixes in the auto-mark code (thanks to DanielMichael Vogt2007-06-291-3/+6
| | | Burrows)
* * fix some warningsMichael Vogt2007-06-191-1/+0
|
* * apt-pkg/depcache.cc:Michael Vogt2007-06-141-1/+1
| | | | - merge missing bugfix from ubuntu branch
* * merged another missing bit from the ubuntu branchMichael Vogt2007-06-091-1/+1
|
* * merged some more missing bitsMichael Vogt2007-06-091-1/+7
|\
| * * apt-pkg/depcache.cc:Michael Vogt2007-03-141-1/+4
| | | | | | | | - always chmod extended_states to 0644
* | * updated from http://people.ubuntu.com/~mvo/bzr/apt/auto-mark/Michael Vogt2007-05-021-5/+16
|\|