summaryrefslogtreecommitdiff
path: root/apt-pkg/depcache.cc
AgeCommit message (Collapse)Author
2010-05-04merged from davids branchMichael Vogt
2010-05-04merged from the debian-sid branchMichael Vogt
2010-05-04merge from the mvo branchMichael Vogt
2010-04-28rewrite the pseudo package reinstaller to be more intelligentDavid Kalnischkies
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.
2010-04-28* apt-pkg/depcache.cc:Michael Vogt
- fix incorrect std::cout usage for debug output
2010-04-03* apt-pkg/depcache.cc:David Kalnischkies
- "reinstall" the correct version for a killed pseudo package
2010-03-18merge MultiArch-ABI. We don't support MultiArch yet (as most other tools),David Kalnischkies
but we support the usage of the new ABI so libapt users can start to prepare for MultiArch (Closes: #536029)
2010-03-14* apt-pkg/depcache.cc:David Kalnischkies
- remove Auto-Installed information from extended_states together with the package itself (Closes: #572364)
2010-03-14Ensure that for each all package at least one pseudopackage is installedDavid Kalnischkies
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.
2010-03-01We need to kill also pseudo packages which have no dependency, noDavid Kalnischkies
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.
2010-02-27Enable the AutoRemover to talk "Multi-Arch" by marking all pseudoDavid Kalnischkies
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.
2010-02-13[BREAK] merge MultiArch-ABI. We don't support MultiArch,David Kalnischkies
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.
2010-02-12Add yet another pseudo package which isn't as pseudo as the others:David Kalnischkies
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.
2010-02-10Pre-MultiArch a package which depends on a package with architecture "all"David Kalnischkies
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.
2010-02-07fix progress reporting while reading extended_states fileDavid Kalnischkies
2009-12-02* apt-pkg/packagemanager.cc:Michael Vogt
- 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)
2009-10-29* apt-pkg/depcache.cc, apt-pkg/indexcopy.cc:Michael Vogt
- typo fix (LP: #462328)
2009-08-12With the introduction of the Is{Delete,Install}Ok hooks the apt flagDavid Kalnischkies
--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
2009-07-28apt-pkg/depcache.cc:Michael Vogt
- 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
2009-07-25Apply patch from Sami Liedes <sliedes@cc.hut.fi> to reduce theOtavio Salvador
number of times we call progress bar updating and debugging configuration settings.
2009-07-07* remove the MarkKeep calls if Is{Delete,Install}Ok false, becauseDavid Kalnischkies
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
2009-06-30* add hook for MarkInstall and MarkDelete (closes: #470035)David Kalnischkies
* 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.
2009-06-30add the various foldmarkers in apt-pkg & cmdline (no code change)David Kalnischkies
2009-06-30merge the AutoInstOk patch from debian-experimentalMichael Vogt
2009-06-29* support IsAutoInstallOk in the resolver tooMichael Vogt
* honor the dpkg hold state in IsAutoInstallOk (closes: #64141)
2009-06-29merge r1797 from lp:~donkult/apt/experimentalMichael Vogt
2009-06-29add hook for auto-install (closes: #470035)Michael Vogt
2009-06-29* add depth information to the debug output and show what dependsMichael Vogt
type triggers a autoinst (closes: #458389) * add debug::pkgDepCache::Marker with more detailed debug output (closes: #87520)
2008-10-28fix various -Wall warningsMichael Vogt
2008-10-11Fix typo in apt-pkg/depcache.ccLuca Bruno
2008-07-25* apt-pkg/depcache.cc:Michael Vogt
- when checking for new important deps, skip critical ones (closes: #485943)
2008-04-27Improve the debugging of the auto-remove code.Daniel Burrows
2008-03-18Patch MarkInstall to follow currently satisfied Recommends even if they ↵Daniel Burrows
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.
2007-07-26* apt-pkg/depcache.cc:Michael Vogt
- support a list of sections for: APT::Install-Recommends-Sections APT::Never-MarkAuto-Sections
2007-06-29* fixes in the auto-mark code (thanks to DanielMichael Vogt
Burrows)
2007-06-19* fix some warningsMichael Vogt
2007-06-14* apt-pkg/depcache.cc:Michael Vogt
- merge missing bugfix from ubuntu branch
2007-06-09* merged another missing bit from the ubuntu branchMichael Vogt
2007-06-09* merged some more missing bitsMichael Vogt
2007-05-02* updated from http://people.ubuntu.com/~mvo/bzr/apt/auto-mark/Michael Vogt
2007-03-14* apt-pkg/depcache.cc:Michael Vogt
- always chmod extended_states to 0644
2007-03-14* apt-pkg/depcache.cc:Michael Vogt
- added APT::Never-MarkAuto-Section variable - that will consider dependencies of packages in this section manual
2006-12-18* apt-pkg/depcache.cc:Michael Vogt
- never autoremove Required packages
2006-12-18* apt-pkg/depcache.cc:Michael Vogt
- never mark required packages as garbage
2006-12-14* merged the apt-breaks-iwj branchMichael Vogt
* pulled in the other remaining ubuntu changes
2006-12-14* merged the no-pragma branchMichael Vogt
2006-10-02* removed the pragma messMichael Vogt
2006-10-02* merged from apt--auto-markMichael Vogt
2006-09-21* merged from the apt--install-recommends branchMichael Vogt
2006-09-21* apt-pkg/depcache.cc:Michael Vogt
- do not change the auto-flag in MarkKeep() to prevent side-effects in interactive package managers when a package is marked for remove first and then unmarked again. the old code removed the auto-flag, the new code will retain this information - a package can be garbage even if it is already marked for removal