summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgcache.cc
Commit message (Collapse)AuthorAgeFilesLines
* * apt-pkg/cacheset.{cc,h}:David Kalnischkies2010-05-311-1/+1
| | | - add simple wrapper around std::set for cache structures
* * apt-pkg/pkgcache.cc:David Kalnischkies2010-05-311-0/+19
| | | - get the best matching arch package from a group with FindPreferredPkg
* * doc/files.sgml:Michael Vogt2010-05-041-0/+3
|\ | | | | | | | | | | | | | | | | - sync documentation with status quo, regarding files/directories in use, extended_states and uri schemes. * doc/cache.sgml: - drop the file in favor of inplace documentation with doxygen * apt-pkg/pkgcache.h: - enhance the Groups ABI by providing a ID as the other structs does - check also the size of the Group struct then checking for the others
| * * apt-pkg/pkgcache.h:David Kalnischkies2010-05-041-0/+3
| | | | | | | | - enhance the Groups ABI by providing a ID as the other structs does - check also the size of the Group struct then checking for the others
* | * apt-pkg/pkgcache.cc:Julian Andres Klode2010-05-041-1/+1
|/ | | | | - Merge fix from David to correct handling in single-arch environments. This makes apt-get showauto working.
* Group packages in the same group together in the package listDavid Kalnischkies2010-03-301-12/+5
| | | | | so it is easier to find them later on as we have no "noice" anymore between them.
* Readd the FindPkg() method implementation used in the singleArch days toDavid Kalnischkies2010-03-181-1/+29
| | | | | use it as a fallback if multiarch is not enabled. The effect is barly noticeable but SingleArch is the realworld scenario.
* move ShowPkg() from apt-get to the PkgIterator and rename it to FullName()David Kalnischkies2010-02-261-0/+12
| | | | | | | responseable for displaying a package name and the architecture in a uniform way. Pretty option can be used to not append the architecture if it is the native architecture or all - and use it all over the place in the commandline tools.
* [BREAK] merge MultiArch-ABI. We don't support MultiArch,David Kalnischkies2010-02-131-46/+171
|\ | | | | | | | | | | | | | | | | 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.
| * In SingleArch environments we don't need the arch "all" pseudo packageDavid Kalnischkies2010-02-121-2/+7
| | | | | | | | | | for handling arch:all packages, so we create only one package and stop calling it a pseudo package.
| * Add yet another pseudo package which isn't as pseudo as the others:David Kalnischkies2010-02-121-0/+12
| | | | | | | | | | | | | | | | | | | | 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.
| * Add Multi-Arch: allowed support by creating an implicit provide ofDavid Kalnischkies2010-02-111-1/+4
| | | | | | | | | | name:any for such packages, so dependencies in this style can be easily resolved.
| * Drop the Arch information from the Version structure as we can getDavid Kalnischkies2010-02-071-2/+2
| | | | | | | | the information from the parent package now
| * Split ListParser::NewDepends into two methods to use these new methodDavid Kalnischkies2009-12-271-0/+27
| | | | | | | | | | | | | | | | | | for creating the dependencies needed for our groups: For now for all groups only one package can be installed at the same time which conflicts with each other packages in the group. The exceptions are architecture all package. Also, the Multi-Arch field is now parsed, but not used for now.
| * merge Goswin Brederlow "support download of index files for different archs"David Kalnischkies2009-12-231-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | patch which includes the following big changes: - Declare the unused [vendor] field in sources.list as option field, e.g. deb [arch=amd64,i386 lang=en_GB have=fun] http://example.org - When fetching index files download them for all APT::Architectures (overrideable with the options field above) - Allow all architectures of APT::Architectures to be in the Cache - Add the architecture to status and progress informations - Add b= (Binary architecture) to policy This commit doesn't incude the "pin-hack" as the Group structure will take care of this (and does it already to some extend).
| * Implement the first step toward Multi-Arch by setting up a GroupDavid Kalnischkies2009-12-191-16/+96
| | | | | | | | | | | | | | | | | | | | | | | | infrastructor for packages. APT is now aware of the fact that a package A in architecture X can't satisfy a dependency on package A in architecture Y - to handle these packages are now identified by name and architecture, so different architectures of the same package are handled internally as completly different packages. This is great for pinning, dependency checking and in many other situations, but sometimes we need to know which archs are available for a given package: Here Groups come to our rescue!
| * Refactor the cache iterators by using a common base classDavid Kalnischkies2009-12-091-31/+25
| | | | | | | | | | This should not change the public interface, but it removes the friend connection between the iterators and pkgcache as it is unused.
* | * apt-pkg/contrib/macros.h:David Kalnischkies2010-01-301-1/+1
| | | | | | | | | | - move the header system.h with a new name to the public domain, to be able to use it in other headers (Closes: #567662)
* | Fix the following gcc-4.5 buildfailure in pkgcache.cc by following the ↵David Kalnischkies2010-01-021-1/+1
|/ | | | | | | | suggestion: pkgcache.cc: In member function ‘const char* pkgCache::PkgIterator::CandVersion() const’: pkgcache.cc:301:51: error: cannot call constructor ‘pkgPolicy::pkgPolicy’ directly pkgcache.cc:301:51: note: for a function-style cast, remove the redundant ‘::pkgPolicy’
* [BREAK] add possibility to download and use multiplyDavid Kalnischkies2009-11-261-9/+17
| | | | | | | Translation files, configurable with Acquire::Languages accessable with APT::Configuration::getLanguages() and as always with documentation in apt.conf. The commit also includes a very very simple testapp.
* * apt-pkg/pkgcache.cc:Michael Vogt2009-08-241-6/+6
| | | | | | - do not set internel "needs-configure" state for packages in triggers-pending state. dpkg will deal with the trigger and it if does it before we trigger it, dpkg will error out (LP: #414631)
* * apt-pkg/acquire.cc:Michael Vogt2009-07-211-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - make the max pipeline depth of the acquire queue configurable via Acquire::Max-Pipeline-Depth * apt-pkg/deb/dpkgpm.cc: - add Dpkg::UseIoNice boolean option to run dpkg with ionice -c3 (off by default) - send "dpkg-exec" message on the status fd when dpkg is run - provide DPkg::Chroot-Directory config option (useful for testing) - fix potential hang when in a backgroud process group * apt-pkg/algorithms.cc: - consider recommends when making the scores for the problem resolver * apt-pkg/acquire-worker.cc: - show error details of failed methods * apt-pkg/contrib/fileutl.cc: - if a process aborts with signal, show signal number * methods/http.cc: - ignore SIGPIPE, we deal with EPIPE from write in HttpMethod::ServerDie() (LP: #385144) * apt-pkg/indexcopy.cc: - support having CDs with no Packages file (just a Packages.gz) by not forcing a verification on non-existing files (LP: #255545) - remove the gettext from a string that consists entirely of variables (LP: #56792) * apt-pkg/cacheiterators.h: - add missing checks for Owner == 0 in end() * apt-pkg/indexrecords.cc: - fix some i18n issues * apt-pkg/contrib/strutl.h: - add new strprintf() function to make i18n strings easier - fix compiler warning * apt-pkg/deb/debsystem.cc: - make strings i18n able * fix problematic use of tolower() when calculating the version hash by using locale independant tolower_ascii() function. Thanks to M. Vefa Bicakci (LP: #80248) * build fixes for g++-4.4 * cmdline/apt-mark: - add "showauto" option to show automatically installed packages * document --install-recommends and --no-install-recommends (thanks to Dereck Wonnacott, LP: #126180) * Updated cron script to support backups by hardlinks and verbose levels. All features turned off by default. * Added more error handlings. Closes: #438803, #462734, #454989, * Refactored condition structure to make download and upgrade performed if only previous steps succeeded. Closes: #341970 * Documented all cron script related configuration items in configure-index. * apt-ftparchive might write corrupt Release files (LP: #46439) * Apply --important option to apt-cache depends (LP: #16947)
| * fix problematic use of tolower() when calculating the version Michael Vogt2009-04-231-2/+2
| | | | | | | | | | hash by using locale independant tolower_ascii() function. Thanks to M. Vefa Bicakci (LP: #80248)
| * apt-pkg/pkgcache.cc: fix typoMichael Vogt2009-02-031-1/+1
| |
| * * apt-pkg/pkgcache.cc:Michael Vogt2009-02-031-3/+7
| | | | | | | | - do not run "dpkg --configure pkg" if pkg is in trigger-awaited state (LP: #322955)
| * * apt-pkg/pkgcachegen.cc:Michael Vogt2008-09-231-1/+2
| | | | | | | | - do not add multiple identical descriptions for the same language (closes: #400768)
* | * add depth information to the debug output and show what dependsMichael Vogt2009-06-291-0/+51
| | | | | | | | | | type triggers a autoinst (closes: #458389) * add debug::pkgDepCache::Marker with more detailed debug output (closes: #87520)
* | [ABI break] Allow pinning by codename (closes: #97564)Michael Vogt2009-06-291-0/+2
|\ \
| * | [apt-pkg] allow also codenames for specifying a releaseDavid Kalnischkies2009-05-071-0/+2
| | | | | | | | | | | | | | | * MatchType::Release checks first for archive than for codename equality * new n= option in apt_preference to be able to pin based on a codeName
* | | Introduce support for the Enhances field. (Closes: #137583) jak@debian.org2009-06-151-2/+2
|/ /
* | * apt-pkg/contrib/strutl.cc:Michael Vogt2009-04-091-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - fix TimeToStr i18n (LP: #289807) * [ABI break] merge support for http redirects, thanks to Jeff Licquia and Anthony Towns * [ABI break] use int for the package IDs (thanks to Steve Cotton) * apt-pkg/pkgcache.cc: - do not run "dpkg --configure pkg" if pkg is in trigger-awaited state (LP: #322955) * methods/https.cc: - add Acquire::https::AllowRedirect support * Clarify the --help for 'purge' (LP: #243948) * cmdline/apt-get.cc - fix "apt-get source pkg" if there is a binary package and a source package of the same name but from different packages (LP: #330103) * cmdline/acqprogress.cc: - Call pkgAcquireStatus::Pulse even if quiet, so that we still get dlstatus messages on the status-fd (LP: #290234).
* | * apt-pkg/pkgcachegen.cc:egon2008-09-231-1/+2
|/ | | | - do not add multiple identical descriptions for the same language (closes: #400768)
* * dpkg-triggers: Deal properly with new package states.Michael Vogt2007-09-061-2/+4
|
* * merged the apt-breaks-iwj branchMichael Vogt2006-12-141-4/+7
|\ | | | | | | * pulled in the other remaining ubuntu changes
| * bump cache versionIan Jackson2006-09-051-1/+1
| |
| * initial Breaks implementationIan Jackson2006-08-251-3/+6
| |
| * * merged ddtp supportMichael Vogt2006-08-111-2/+30
| |\
* | \ * merged the no-pragma branchMichael Vogt2006-12-141-5/+0
|\ \ \
| * | | * removed the pragma messMichael Vogt2006-10-021-5/+0
| |/ /
* | / * merged with apt--mvoMichael Vogt2005-11-301-2/+2
|\| | | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * apt@packages.debian.org/apt--sources-list-d--0--base-0 tag of apt@packages.debian.org/apt--main--0--patch-30 * apt@packages.debian.org/apt--sources-list-d--0--patch-1 Patch from apt-rpm via Michael Vogt to implement /etc/apt/sources.list.d * bubulle@debian.org--2005/apt--main--0--patch-130 Galician translation completed * bubulle@debian.org--2005/apt--main--0--patch-131 Simplified Chinese translation update * bubulle@debian.org--2005/apt--main--0--patch-132 Completed Simplified Chinese translation * bubulle@debian.org--2005/apt--main--0--patch-133 Merge with Michael AND update PO files * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-90 * merged the sources.list.d patch * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-91 * merged with bubulle * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-92 * changelog update * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-93 * sources.list.d documented * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-94 * pkgDirStream has (slightly) better extract support now * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-95 * merge fix for #339533 * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-96 * merged with bubulle * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-97 * some more debug output * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-98 * ABI change: merged more flexible pkgAcquireFile code * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-99 * merged http download limit for apt (#146877) * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-100 * applied parts of the string speedup patch from debian #319377 (ABI change) * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-101 * fix for #340448 * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-102 * finalized this release * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-103 * changelog updates * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-104 * build-depend on libdb4.3 now, fix for kFreeBSD (#317718) * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-105 * fix mailaddress * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-106 * fix a string (thanks to bubulle) * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-107 * merged with bubulle
| * * applied parts of the string speedup patch from debian #319377 (ABI change)Michael Vogt2005-11-231-2/+2
| |
* | * ABI/API change: add "VerIterator::TranslatedDescription()" method to make ↵Michael Vogt2005-10-211-0/+19
| | | | | | | | the life of the api user easier
* | * code cleanups (thanks matt!), moved UsePackage before the description list ↵Michael Vogt2005-07-281-1/+1
| | | | | | | | build in pkgcachegen to catch MMap errors early
* | Sync with apt@packages.debian.org/apt--main--0--patch-75Otavio Salvador2005-03-301-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * apt@packages.debian.org/apt--main--0--patch-75 Merge bubulle@debian.org--2005/apt--main--0 * bubulle@debian.org--2005/apt--main--0--patch-58 Correct file permissions * bubulle@debian.org--2005/apt--main--0--patch-59 Bring consistency to the use of capitals in programs messages * bubulle@debian.org--2005/apt--main--0--patch-60 Correct the permission change on configure.in * bubulle@debian.org--2005/apt--main--0--patch-61 Complete unfuzzification of PO files after the capitalization fixes * bubulle@debian.org--2005/apt--main--0--patch-62 Final work of capitalization cleaning and translation unfuzzyfication * bubulle@debian.org--2005/apt--main--0--patch-63 Correct the "arbitary" typo in apt-ftparchive * bubulle@debian.org--2005/apt--main--0--patch-64 Italian translation update * bubulle@debian.org--2005/apt--main--0--patch-65 Italian translation update
| * Bring consistency to the use of capitals in programs messagesChristian Perrier2005-03-061-1/+1
| |
* | Port DDTP to APT 0.6 branchOtavio Salvador2005-03-231-1/+10
|/
* Typo fixes.Arch Librarian2004-09-201-2/+2
| | | | | | Author: doogie Date: 2003-02-10 01:40:58 GMT Typo fixes.
* Increase the range of the ID type for depsArch Librarian2004-09-201-3/+3
| | | | | | Author: jgg Date: 2001-07-01 22:28:24 GMT Increase the range of the ID type for deps
* G++3 fixes from RandolphArch Librarian2004-09-201-4/+6
| | | | | | Author: jgg Date: 2001-05-14 05:47:30 GMT G++3 fixes from Randolph
* 'apt-cache policy' preferences debug tool.Arch Librarian2004-09-201-1/+20
| | | | | | Author: jgg Date: 2001-04-29 05:13:51 GMT 'apt-cache policy' preferences debug tool.