summaryrefslogtreecommitdiff
path: root/cmdline/cacheset.cc
Commit message (Collapse)AuthorAgeFilesLines
* prefer the Policy if it is built instead of the DepCache andDavid Kalnischkies2010-07-041-3/+4
| | | | if DepCache is not available as fallback built the Policy
* Refactor TryToInstall to look a bit saner by splitting the RemoveDavid Kalnischkies2010-07-031-1/+0
| | | | | | and the Virtual packages part out of the loop. The function still exists unchanged as TryToInstallBuildDep through for the BuildDep installation method
* add a ConstructedBy member to the PackageSet which can be used by theDavid Kalnischkies2010-07-021-10/+16
| | | | | | e.g. FromString to tell the caller if the string was an exact match or found by regex or task. The two later ones can match packages for which we want to ignore failures in the VersionSet
* if the package has no installed & candidate but is virtual see if onlyDavid Kalnischkies2010-06-291-0/+8
| | | | one package provides it - if it is only one use this package instead
* rename AddSelectedVersion() to a better public FromPackage()David Kalnischkies2010-06-291-5/+6
|
* - factor out code to get a single package FromName()David Kalnischkies2010-06-281-52/+99
| | | - check in Grouped* first without modifier interpretation
* - only print errors if all tries to get a package by string failedDavid Kalnischkies2010-06-261-6/+12
| | | *
* Use an abstract helper for error handling and outputDavid Kalnischkies2010-06-221-62/+117
| | | | | | | | instead of doing this directly in the CacheSets. With this method an application like apt-get can change the behavior of the CacheSets to his liking. It can for example easily keep track of how packages were added to the set: by names or with regex's…
* get packages by task^ with FromTask()David Kalnischkies2010-06-191-7/+69
|
* * cmdline/cacheset.cc:David Kalnischkies2010-06-151-0/+330
- doesn't include it in the library for now as it is too volatile