summaryrefslogtreecommitdiff
path: root/cmdline/apt-cache.cc
AgeCommit message (Collapse)Author
2012-02-25* cmdline/apt-cache.cc:David Kalnischkies
- correct --pre-depends option by using dash consistently (LP: #940837)
2011-12-10enable FileFd to guess the compressor based on the filename if requested orDavid Kalnischkies
to search for compressed silbings of the given filename and use this guessing instead of hardcoding Gzip compression
2011-11-11 - provide a {Package,Version}List similar to {Package,Version}SetDavid Kalnischkies
* cmdline/apt-{get,cache,mark}.cc: - use Lists instead of Sets if input order should be preserved for commands accepting lists of packages, e.g. policy (Closes: #625960)
2011-11-09* apt-pkg/cacheset.cc:David Kalnischkies
- make the cachesets real containers which can embedding any container to be able to use the same interface regardless of set or list usage
2011-09-19use forward declaration in headers if possible instead of includesDavid Kalnischkies
2011-09-13merge with debian/experimentalDavid Kalnischkies
2011-09-13reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies
2011-08-11cppcheck complains about some possible speed improvements which could beDavid Kalnischkies
done on the mirco-optimazation level, so lets fix them: (performance) Possible inefficient checking for emptiness. (performance) Prefer prefix ++/-- operators for non-primitive types.
2011-05-11convert a lot of places to use IsNegative instead of checking by handDavid Kalnischkies
for the three different dependencies
2011-04-21* cmdline/apt-get.cc:David Kalnischkies
- deprecate mostly undocumented 'markauto' in favor of 'apt-mark' * cmdline/apt-cache.cc: - deprecate mostly undocumented 'showauto' in favor of 'apt-mark'
2011-04-16fix a bunch of cppcheck warnings/errors based on a patch byDavid Kalnischkies
Niels Thykier, thanks! (Closes: #622805)
2011-03-08Remove the "pseudopackage" handling of Architecture: all packages forDavid Kalnischkies
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
2011-02-04* cmdline/apt-cache.cc:David Kalnischkies
- remove not implemented 'apt-cache add' command * doc/apt-cache.8.xml: - describe reality as apt-cache just queries and doesn't manipulate the caches. Thanks to Enrico Zini for spotting it! (Closes: #612009)
2010-12-07cmdline/apt-cache.cc: Create an error for apt-cache dependsJulian Andres Klode
if packages could not found (LP: #647045)
2010-09-24* cmdline/apt-cache.cc:David Kalnischkies
- use the TranslatedDescription for searching and not the first available one as it is maybe not an expected language (Closes: #597925)
2010-08-28remove useless GetInitialize methodDavid Kalnischkies
2010-08-25show in madison command again also source packages (LP: #614589)David Kalnischkies
2010-07-30 - return success in show if a virtual package was givenDavid Kalnischkies
*
2010-07-30 - [ABI BREAK] add an ErrorType option to CacheSetHelperDavid Kalnischkies
* cmdline/apt-cache.cc: - use Notice instead of Error in the CacheSetHelper messages for compat reasons. Otherwise tools like sbuild blow up
2010-07-26 - show in (r)depends the canidate per default instead of newestDavid Kalnischkies
- share the (r)depends code instead of codecopy
2010-07-26add APT::Cache::ShowOnlyFirstOr option to print only the firstDavid Kalnischkies
alternative in the apt-cache (r)depends commands
2010-07-17* apt-pkg/cacheset.cc:David Kalnischkies
- move them back to the library as they look stable now
2010-07-16* cmdline/apt-cache.cc:David Kalnischkies
- be able to omit dependency types in (r)depends (Closes: #319006)
2010-07-11[ Martin Pitt ]David Kalnischkies
* debian/rules: - Make DEB_BUILD_OPTIONS=noopt actually work by passing the right CXXFLAGS. * apt-pkg/contrib/fileutl.{h,cc}: - Add support for reading of gzipped files with the new "ReadOnlyGzip" OpenMode. (Closes: #188407) - Link against zlib (in apt-pkg/makefile) and add zlib build dependency. - [ABI BREAK] This adds a new private member to FileFd, but its initialization is in the public header file. * configure.in: - Check for zlib library and headers. * apt-pkg/acquire-item.cc, apt-pkg/deb/debindexfile.cc, apt-pkg/deb/debrecords.cc, apt-pkg/deb/debsrcrecords.h, cmdline/apt-cache.cc: - Open Packages, Sources, and Translations indexes in "ReadOnlyGzip" mode. * apt-pkg/deb/debindexfile.cc: - If we do not find uncompressed package/source/translation indexes, look for gzip compressed ones. * apt-pkg/acquire-item.cc: - If the Acquire::GzipIndexes option is true and we download a gzipped index file, keep it as it is (and rename to .gz) instead of uncompressing it. * doc/apt.conf.5.xml: - Document the new Acquire::GzipIndexes option. * doc/po/apt-doc.pot, doc/po/de.po: - German translation of new Acquire::GzipIndexes option. * Add test/test-indexes.sh: - Test behaviour of index retrieval and usage, in particular with uncompressed and gzip compressed indexes. * methods/gzip.cc: With FileFd now being able to read gzipped files, there is no need for the gzip method any more to spawn an external gzip process. Rewrite it to use FileFd directly, which makes the code a lot simpler, and also using less memory and overhead.
2010-06-26give the APT::Cache::Generate option her effect backDavid Kalnischkies
2010-06-26do not override the user set quiet setting even if the target is not a ttyDavid Kalnischkies
2010-06-25print all messages if the application is in an interactive runDavid Kalnischkies
2010-06-24Switch FileFd to not transparently gunzip, since that breaks code which ↵martin@piware.de
expects the compressed contents to stay (such as the copy backend, or when using file:// repositories. Instead, introduce a new ReadOnlyGzip mode and use that where needed
2010-06-19* cmdline/apt-get.cc:David Kalnischkies
- use the cachsets in the install commands
2010-06-06use the GroupedFromCommandLine() method in the dotty and xvcg commandDavid Kalnischkies
to get all the funky features in less lines
2010-06-05do not fail if an unrelated error is pending in DisplayRecord()David Kalnischkies
2010-06-05accept package versions in the unmet commandDavid Kalnischkies
2010-06-05apt-cache show --no-all-versions should issues the CandidateDavid Kalnischkies
2010-06-05Don't increase the commandline parameter in the library but in theDavid Kalnischkies
application to be really generic.
2010-06-05add --target-release option (Closes: #115520)David Kalnischkies
2010-06-05Add a option to apt-cache policy to additionally init the DepCache beforeDavid Kalnischkies
starting to get the package informations. This is useful e.g. for debugging the MultiArchKiller.
2010-06-05use pkgCacheFile and the new CacheSets all over the placeDavid Kalnischkies
2010-05-31rename packageset into cacheset while it is not too lateDavid Kalnischkies
2010-05-31* cmdline/apt-cache.cc:David Kalnischkies
- make the search multiarch compatible by using GrpIterator instead
2010-05-31i managed to commit broken code… which (at least in my mind) workedDavid Kalnischkies
yesterday. Strange… anyway only small fixes.
2010-05-31move cmdline parsing from apt-cache to new FromCommandLine methodDavid Kalnischkies
2010-05-04Move the showauto command to apt-cache and sort output.Julian Andres Klode
* cmdline/apt-cache.cc: - Add a showauto command to apt-cache. - Add apt-get markauto and unmarkauto commands.
2010-05-04use GroupCount for package names in stats and add a package struct lineDavid Kalnischkies
2010-04-23* cmdline/apt-cache.cc:David Kalnischkies
- align Installed and Candidate Version in policy so they can be compared easier, thanks Ralf Gesellensetter for the pointer! (Closes: #578657)
2010-04-01merged from lp:~donkult/apt/sidMichael Vogt
2010-03-21cmdline/apt-cache.cc: Change behavior of showsrc to match the one of show ↵Julian Andres Klode
(Closes: #512046).
2010-02-26move ShowPkg() from apt-get to the PkgIterator and rename it to FullName()David Kalnischkies
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.
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-11display the architecture of the package if it is not the defaultDavid Kalnischkies
architecture in apt-get, display policy for all available architectures and use GrpIterator in apt-cache pkgnames