]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-cache.cc
Add support to debian/rules to update config.sub and co...
[apt.git] / cmdline / apt-cache.cc
index 426bfc5b9ed8ea60eb9517caab9ca7fdb3ab72d8..6acb62cc6bc5fc117d6cd1701aa25eb73c292c38 100644 (file)
@@ -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 <config.h>
 #include <apti18n.h>
 
-#include <iostream.h>
+#include <locale.h>
+#include <iostream>
 #include <unistd.h>
 #include <errno.h>
 #include <regex.h>
@@ -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 ||