From f1663bdf8391e09939e88f070171ed3fe3ab2cbd Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:52:08 +0000 Subject: Minor fixes Author: jgg Date: 1998-12-09 05:57:17 GMT Minor fixes --- cmdline/apt-cdrom.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'cmdline/apt-cdrom.cc') 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 &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) -- cgit v1.2.3-70-g09d2