From ed51f28e2fd76a019de4d4239b01cc759fc0fb07 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:54:40 +0000 Subject: Slight fixes for source support Author: jgg Date: 1999-09-03 05:46:48 GMT Slight fixes for source support --- cmdline/apt-cdrom.cc | 10 ++++++---- cmdline/indexcopy.cc | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'cmdline') diff --git a/cmdline/apt-cdrom.cc b/cmdline/apt-cdrom.cc index 4dadb5d40..9b826a566 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.31 1999/08/25 02:45:01 jgg Exp $ +// $Id: apt-cdrom.cc,v 1.32 1999/09/03 05:46:48 jgg Exp $ /* ###################################################################### APT CDROM - Tool for handling APT's CDROM database. @@ -91,6 +91,7 @@ bool FindPackages(string CD,vector &List,vector &SList, if (strcmp(Dir->d_name,".") == 0 || strcmp(Dir->d_name,"..") == 0 || //strcmp(Dir->d_name,"source") == 0 || + strcmp(Dir->d_name,".disk") == 0 || strcmp(Dir->d_name,"experimental") == 0 || strcmp(Dir->d_name,"binary-all") == 0) continue; @@ -537,11 +538,12 @@ bool DoAdd(CommandLine &) if (_config->FindB("Debug::aptcdrom",false) == true) { - cout << "I found:" << endl; + cout << "I found (binary):" << endl; for (vector::iterator I = List.begin(); I != List.end(); I++) - { cout << *I << endl; - } + cout << "I found (source):" << endl; + for (vector::iterator I = sList.begin(); I != sList.end(); I++) + cout << *I << endl; } // Fix up the list diff --git a/cmdline/indexcopy.cc b/cmdline/indexcopy.cc index 39057301f..2585fc1da 100644 --- a/cmdline/indexcopy.cc +++ b/cmdline/indexcopy.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: indexcopy.cc,v 1.1 1999/07/12 02:59:36 jgg Exp $ +// $Id: indexcopy.cc,v 1.2 1999/09/03 05:46:48 jgg Exp $ /* ###################################################################### Index Copying - Aid for copying and verifying the index files @@ -281,7 +281,7 @@ bool IndexCopy::CopyPackages(string CDROM,string Name,vector &List) cout << '.' << endl; if (Packages == 0) - return _error->Error("No valid records were found."); + return _error->Warning("No valid records were found."); if (NotFound + WrongSize > 10) cout << "Alot of entries were discarded, something may be wrong." << endl; -- cgit v1.2.3