X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/2a3f3893b2197fa0604e09fb662f1112a453e7f4..267f5ed66f94946f80b12b35f68a1019a5ea35ce:/cmdline/apt-cache.cc diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc index 426bfc5b9..6acb62cc6 100644 --- a/cmdline/apt-cache.cc +++ b/cmdline/apt-cache.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: apt-cache.cc,v 1.54 2001/12/26 06:47:58 jgg Exp $ +// $Id: apt-cache.cc,v 1.58 2002/03/26 07:38:58 jgg Exp $ /* ###################################################################### apt-cache - Manages the cache files @@ -31,7 +31,8 @@ #include #include -#include +#include +#include #include #include #include @@ -1259,6 +1260,7 @@ bool ShowHelp(CommandLine &Cmd) _("Usage: apt-cache [options] command\n" " apt-cache [options] add file1 [file1 ...]\n" " apt-cache [options] showpkg pkg1 [pkg2 ...]\n" + " apt-cache [options] showsrc pkg1 [pkg2 ...]\n" "\n" "apt-cache is a low-level tool used to manipulate APT's binary\n" "cache files, and query information from them\n" @@ -1267,6 +1269,7 @@ bool ShowHelp(CommandLine &Cmd) " add - Add an package file to the source cache\n" " gencaches - Build both the package and source cache\n" " showpkg - Show some general information for a single package\n" + " showsrc - Show source records\n" " stats - Show some basic statistics\n" " dump - Show the entire file in a terse form\n" " dumpavail - Print an available file to stdout\n" @@ -1337,7 +1340,11 @@ int main(int argc,const char *argv[]) {0,0}}; CacheInitialize(); - + + // Set up gettext support + setlocale(LC_ALL,""); + textdomain(PACKAGE); + // Parse the command line and initialize the package library CommandLine CmdL(Args,_config); if (pkgInitConfig(*_config) == false ||