summaryrefslogtreecommitdiff
path: root/cmdline/apt-cdrom.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:52:08 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:52:08 +0000
commitf1663bdf8391e09939e88f070171ed3fe3ab2cbd (patch)
tree073dcf4f0cd766c645ccd7cef18f310526a05d04 /cmdline/apt-cdrom.cc
parentab5498ab68d6f83dbae3099287466573f2707467 (diff)
Minor fixes
Author: jgg Date: 1998-12-09 05:57:17 GMT Minor fixes
Diffstat (limited to 'cmdline/apt-cdrom.cc')
-rw-r--r--cmdline/apt-cdrom.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/cmdline/apt-cdrom.cc b/cmdline/apt-cdrom.cc
index bf2e85b88..a413b109f 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.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)