summaryrefslogtreecommitdiff
path: root/cmdline/apt-cache.cc
Commit message (Collapse)AuthorAgeFilesLines
* cmdline/apt-cache.cc: Create an error for apt-cache dependsJulian Andres Klode2010-12-071-1/+1
| | | if packages could not found (LP: #647045)
* * cmdline/apt-cache.cc:David Kalnischkies2010-09-241-2/+2
| | | | - use the TranslatedDescription for searching and not the first available one as it is maybe not an expected language (Closes: #597925)
* remove useless GetInitialize methodDavid Kalnischkies2010-08-281-11/+0
|
* show in madison command again also source packages (LP: #614589)David Kalnischkies2010-08-251-5/+11
|
* - return success in show if a virtual package was givenDavid Kalnischkies2010-07-301-26/+38
| | | *
* - [ABI BREAK] add an ErrorType option to CacheSetHelperDavid Kalnischkies2010-07-301-8/+16
| | | | | * cmdline/apt-cache.cc: - use Notice instead of Error in the CacheSetHelper messages for compat reasons. Otherwise tools like sbuild blow up
* - show in (r)depends the canidate per default instead of newestDavid Kalnischkies2010-07-261-146/+64
| | | - share the (r)depends code instead of codecopy
* add APT::Cache::ShowOnlyFirstOr option to print only the firstDavid Kalnischkies2010-07-261-2/+10
| | | | alternative in the apt-cache (r)depends commands
* * apt-pkg/cacheset.cc:David Kalnischkies2010-07-171-2/+1
| | | - move them back to the library as they look stable now
* * cmdline/apt-cache.cc:David Kalnischkies2010-07-161-15/+62
| | | - be able to omit dependency types in (r)depends (Closes: #319006)
* [ Martin Pitt ]David Kalnischkies2010-07-111-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
| * Switch FileFd to not transparently gunzip, since that breaks code which ↵martin@piware.de2010-06-241-1/+1
| | | | | | | | 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
* | give the APT::Cache::Generate option her effect backDavid Kalnischkies2010-06-261-1/+3
| |
* | do not override the user set quiet setting even if the target is not a ttyDavid Kalnischkies2010-06-261-1/+1
| |
* | print all messages if the application is in an interactive runDavid Kalnischkies2010-06-251-7/+5
| |
* | * cmdline/apt-get.cc:David Kalnischkies2010-06-191-1/+2
| | | | | | - use the cachsets in the install commands
* | use the GroupedFromCommandLine() method in the dotty and xvcg commandDavid Kalnischkies2010-06-061-56/+28
| | | | | | | | to get all the funky features in less lines
* | do not fail if an unrelated error is pending in DisplayRecord()David Kalnischkies2010-06-051-4/+4
| |
* | accept package versions in the unmet commandDavid Kalnischkies2010-06-051-23/+34
| |
* | apt-cache show --no-all-versions should issues the CandidateDavid Kalnischkies2010-06-051-1/+1
| |
* | Don't increase the commandline parameter in the library but in theDavid Kalnischkies2010-06-051-6/+6
| | | | | | | | application to be really generic.
* | add --target-release option (Closes: #115520)David Kalnischkies2010-06-051-0/+2
| |
* | Add a option to apt-cache policy to additionally init the DepCache beforeDavid Kalnischkies2010-06-051-0/+6
| | | | | | | | | | starting to get the package informations. This is useful e.g. for debugging the MultiArchKiller.
* | use pkgCacheFile and the new CacheSets all over the placeDavid Kalnischkies2010-06-051-205/+194
| |
* | rename packageset into cacheset while it is not too lateDavid Kalnischkies2010-05-311-1/+1
| |
* | * cmdline/apt-cache.cc:David Kalnischkies2010-05-311-37/+40
| | | | | | - make the search multiarch compatible by using GrpIterator instead
* | i managed to commit broken code… which (at least in my mind) workedDavid Kalnischkies2010-05-311-1/+1
| | | | | | | | yesterday. Strange… anyway only small fixes.
* | move cmdline parsing from apt-cache to new FromCommandLine methodDavid Kalnischkies2010-05-311-59/+21
| |
* | Move the showauto command to apt-cache and sort output.Julian Andres Klode2010-05-041-0/+27
| | | | | | | | | | * cmdline/apt-cache.cc: - Add a showauto command to apt-cache. - Add apt-get markauto and unmarkauto commands.
* | use GroupCount for package names in stats and add a package struct lineDavid Kalnischkies2010-05-041-1/+3
| |
* | * cmdline/apt-cache.cc:David Kalnischkies2010-04-231-2/+10
| | | | | | | | - align Installed and Candidate Version in policy so they can be compared easier, thanks Ralf Gesellensetter for the pointer! (Closes: #578657)
* | merged from lp:~donkult/apt/sidMichael Vogt2010-04-011-42/+57
|\ \ | |/ |/|
| * move ShowPkg() from apt-get to the PkgIterator and rename it to FullName()David Kalnischkies2010-02-261-31/+28
| | | | | | | | | | | | | | 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-15/+33
| |\ | | | | | | | | | | | | | | | | | | | | | | | | 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/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * display the architecture of the package if it is not the defaultDavid Kalnischkies2010-02-111-15/+31
| | | | | | | | | | | | | | | architecture in apt-get, display policy for all available architectures and use GrpIterator in apt-cache pkgnames
| * | remove translatable marker from the "%4i %s\n" string in apt-cache.ccDavid Kalnischkies2010-01-011-1/+1
| |/
* | cmdline/apt-cache.cc: Change behavior of showsrc to match the one of show ↵Julian Andres Klode2010-03-211-3/+14
| | | | | | | | (Closes: #512046).
* | * French manpage translation updateMichael Vogt2010-01-081-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | * spot & fix various typos in all manpages * German manpage translation update * cmdline/apt-cache.cc: - remove translatable marker from the "%4i %s\n" string * buildlib/po4a_manpage.mak: - instruct debiandoc to build files with utf-8 encoding * buildlib/tools.m4: - fix some warning from the buildtools * apt-pkg/acquire-item.cc: - add configuration PDiffs::Limit-options to not download too many or too big patches (Closes: #554349) * debian/control: - let all packages depend on ${misc:Depends} * share/*-archive.gpg: - remove the horrible outdated files. We already depend on the keyring so we don't need to ship our own version * cmdline/apt-key: - errors out if wget is not installed (Closes: #545754) - add --keyring option as we have now possibly many * methods/gpgv.cc: - pass all keyrings (TrustedParts) to gpgv instead of using only one trusted.gpg keyring (Closes: #304846) * methods/https.cc: - finally merge the rest of the patchset from Arnaud Ebalard with the CRL and Issuers options, thanks! (Closes: #485963)
* [cmdline/apt-cache.cc] fix a memory leak in the xvcg methodDavid Kalnischkies2009-08-081-1/+5
| | | | Patch from George Danchev, thanks (Closes: #511557)
* The 'not dead yet' releaseMichael Vogt2009-07-211-12/+7
|\ | | | | | | | | | | | | | | | | | | | | * add hook for MarkInstall and MarkDelete (closes: #470035) * add the various foldmarkers in apt-pkg & cmdline (no code change) * versions with a pin of -1 shouldn't be a candidate (Closes: #355237) * prefer mmap as memory allocator in MMap instead of a static char array which can (at least in theory) grow dynamic * eliminate (hopefully all) segfaults in pkgcachegen.cc and mmap.cc which can arise if cache doesn't fit into the mmap (Closes: #535218) * display warnings instead of errors if the parts dirs doesn't exist * honor the dpkg hold state in new Marker hooks (closes: #64141)
| * merge with lp:~mvo/apt/debian-sidDavid Kalnischkies2009-07-151-2/+2
| |\
| * | add the various foldmarkers in apt-pkg & cmdline (no code change)David Kalnischkies2009-06-301-12/+7
| | |
* | | * apt-pkg/acquire.cc:Michael Vogt2009-07-211-6/+11
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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)
| * | merged from the debian-sid branchMichael Vogt2008-12-091-2/+2
| |\|
| * | * cmdline/apt-cache.cc:Michael Vogt2008-09-091-1/+2
| | | | | | | | | | | | - remove the gettext from a string that consists entirely of variables (LP: #56792)
| * | fix various -Wall warningsMichael Vogt2008-08-051-1/+1
| | |
| * | * Apply --important option to apt-cache depends (LP: #16947) Michael Vogt2008-07-311-1/+7
| | |
| * | * cmdline/apt-cache.cc:Michael Vogt2008-07-291-4/+2
| | | | | | | | | | | | - do not show Breaks in unmet
* | | Support /etc/apt/preferences.d (Closes: #535512)Julian Andres Klode2009-07-061-2/+2
| |/ |/|