X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/076d01b04c20200fc72fc22de41c4872af484650..3e9512ab48951a15612ae0c2767b896725048374:/cmdline/apt-cdrom.cc diff --git a/cmdline/apt-cdrom.cc b/cmdline/apt-cdrom.cc index aad4dff1a..35430f575 100644 --- a/cmdline/apt-cdrom.cc +++ b/cmdline/apt-cdrom.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: apt-cdrom.cc,v 1.38 2001/05/27 04:46:43 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 #include #include #include @@ -63,6 +64,10 @@ bool FindPackages(string CD,vector &List,vector &SList, InfoDir = CD + ".disk/"; } + // Don't look into directories that have been marked to ingore. + if (stat(".aptignr",&Buf) == 0) + return true; + /* Aha! We found some package files. We assume that everything under this dir is controlled by those package files so we don't look down anymore */ @@ -170,7 +175,7 @@ bool DropBinaryArch(vector &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) { @@ -179,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; @@ -772,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 ||