]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-cdrom.cc
Be quiet in apt.post{inst,rm}.
[apt.git] / cmdline / apt-cdrom.cc
index 884060e48bc44776ec5ca50ffca71b8358b3ca02..35430f57566c0956f199dc7b94fbf7c4ecd42f88 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: apt-cdrom.cc,v 1.39 2001/08/18 22:20:40 jgg Exp $
+// $Id: apt-cdrom.cc,v 1.43 2003/04/26 23:26:13 doogie Exp $
 /* ######################################################################
    
    APT CDROM - Tool for handling APT's CDROM database.
@@ -23,6 +23,7 @@
     
 #include "indexcopy.h"
 
+#include <locale.h>
 #include <iostream>
 #include <fstream>
 #include <vector>
@@ -64,7 +65,7 @@ bool FindPackages(string CD,vector<string> &List,vector<string> &SList,
    }
 
    // Don't look into directories that have been marked to ingore.
-   if (stat(".aptignr",&Bur) == 0)
+   if (stat(".aptignr",&Buf) == 0)
       return true;
    
    /* Aha! We found some package files. We assume that everything under 
@@ -174,7 +175,7 @@ bool DropBinaryArch(vector<string> &List)
 // Score - We compute a 'score' for a path                             /*{{{*/
 // ---------------------------------------------------------------------
 /* Paths are scored based on how close they come to what I consider
-   normal. That is ones that have 'dist' 'stable' 'frozen' will score
+   normal. That is ones that have 'dist' 'stable' 'testing' will score
    higher than ones without. */
 int Score(string Path)
 {
@@ -183,7 +184,7 @@ int Score(string Path)
       Res += 29;
    if (Path.find("/binary-") != string::npos)
       Res += 20;
-   if (Path.find("frozen/") != string::npos)
+   if (Path.find("testing/") != string::npos)
       Res += 28;
    if (Path.find("unstable/") != string::npos)
       Res += 27;
@@ -776,7 +777,11 @@ int main(int argc,const char *argv[])
       {"add",&DoAdd},
       {"ident",&DoIdent},
       {0,0}};
-        
+
+   // 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 ||