]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-cdrom.cc
Minor fixes
[apt.git] / cmdline / apt-cdrom.cc
index bf2e85b88f5bbc9bf5c61e95a6e0f0436160ec7e..a413b109fa46f2b2e4b435a5c6f308d5ea1a0481 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: apt-cdrom.cc,v 1.12 1998/12/09 01:03:00 jgg Exp $
+// $Id: apt-cdrom.cc,v 1.13 1998/12/09 05:57:17 jgg Exp $
 /* ######################################################################
    
    APT CDROM - Tool for handling APT's CDROM database.
@@ -91,9 +91,12 @@ bool FindPackages(string CD,vector<string> &List, unsigned int Depth = 0)
       for (I = 0; I != Depth; I++)
         if (Inodes[I] == Buf.st_ino)
            break;
-      if (Inodes[I] == Buf.st_ino)
+      if (I != Depth)
+      {
+        cout << "Inode throw away " <<  Dir->d_name << endl;
         continue;
-            
+      }
+      
       // Store the inodes weve seen
       Inodes[Depth] = Buf.st_ino;
 
@@ -156,6 +159,8 @@ int Score(string Path)
    int Res = 0;
    if (Path.find("stable/") != string::npos)
       Res += 2;
+   if (Path.find("/binary-") != string::npos)
+      Res += 2;
    if (Path.find("frozen/") != string::npos)
       Res += 2;
    if (Path.find("/dists/") != string::npos)