]> git.saurik.com Git - apt-legacy.git/blobdiff - cmdline/apt-config.cc
Commit that APT bug fix from their bug tracker.
[apt-legacy.git] / cmdline / apt-config.cc
index faf11640c6c1bfdf7c58bcfc5644da7fca6077b3..9919a9c949be91f64eb584ad76844dbb93cc3b52 100644 (file)
@@ -1,7 +1,3 @@
-extern "C" {
-    #include <mach-o/nlist.h>
-}
-
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
 // $Id: apt-config.cc,v 1.11 2003/01/11 07:18:44 jgg Exp $
@@ -71,8 +67,8 @@ bool DoDump(CommandLine &CmdL)
 /* */
 int ShowHelp()
 {
-   ioprintf(cout,_("%s %s for %s %s compiled on %s %s\n"),PACKAGE,VERSION,
-           COMMON_OS,COMMON_CPU,__DATE__,__TIME__);
+   ioprintf(cout,_("%s %s for %s compiled on %s %s\n"),PACKAGE,VERSION,
+           COMMON_ARCH,__DATE__,__TIME__);
    if (_config->FindB("version") == true)
       return 0;
    
@@ -92,16 +88,8 @@ int ShowHelp()
    return 0;
 }
                                                                        /*}}}*/
-
-int main(int argc,const char *argv[])
+int main(int argc,const char *argv[])                                  /*{{{*/
 {
-   struct nlist nl[2];
-   memset(nl, 0, sizeof(nl));
-   nl[0].n_un.n_name = "_useMDNSResponder";
-   nlist("/usr/lib/libc.dylib", nl);
-   if (nl[0].n_type != N_UNDF)
-       *(int *) nl[0].n_value = 0;
-
    CommandLine::Args Args[] = {
       {'h',"help","help",0},
       {'v',"version","version",0},
@@ -114,7 +102,7 @@ int main(int argc,const char *argv[])
 
    // Set up gettext support
    setlocale(LC_ALL,"");
-   //textdomain(PACKAGE);
+   textdomain(PACKAGE);
 
    // Parse the command line and initialize the package library
    CommandLine CmdL(Args,_config);
@@ -144,3 +132,4 @@ int main(int argc,const char *argv[])
    
    return 0;
 }
+                                                                       /*}}}*/