Browse Source

Fix bug #97364
Author: jgg
Date: 2001-08-18 22:20:40 GMT
Fix bug #97364

Arch Librarian 22 years ago
parent
commit
dd27443ee7
2 changed files with 8 additions and 4 deletions
  1. 5 1
      cmdline/apt-cdrom.cc
  2. 3 3
      cmdline/indexcopy.cc

+ 5 - 1
cmdline/apt-cdrom.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
 // Description								/*{{{*/
-// $Id: apt-cdrom.cc,v 1.38 2001/05/27 04:46:43 jgg Exp $
+// $Id: apt-cdrom.cc,v 1.39 2001/08/18 22:20:40 jgg Exp $
 /* ######################################################################
 /* ######################################################################
    
    
    APT CDROM - Tool for handling APT's CDROM database.
    APT CDROM - Tool for handling APT's CDROM database.
@@ -63,6 +63,10 @@ bool FindPackages(string CD,vector<string> &List,vector<string> &SList,
 	 InfoDir = CD + ".disk/";
 	 InfoDir = CD + ".disk/";
    }
    }
 
 
+   // Don't look into directories that have been marked to ingore.
+   if (stat(".aptignr",&Bur) == 0)
+      return true;
+   
    /* Aha! We found some package files. We assume that everything under 
    /* 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
       this dir is controlled by those package files so we don't look down
       anymore */
       anymore */

+ 3 - 3
cmdline/indexcopy.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
 // Description								/*{{{*/
-// $Id: indexcopy.cc,v 1.8 2001/05/27 04:47:21 jgg Exp $
+// $Id: indexcopy.cc,v 1.9 2001/08/18 22:20:40 jgg Exp $
 /* ######################################################################
 /* ######################################################################
 
 
    Index Copying - Aid for copying and verifying the index files
    Index Copying - Aid for copying and verifying the index files
@@ -280,8 +280,8 @@ bool IndexCopy::CopyPackages(string CDROM,string Name,vector<string> &List)
    cout << '.' << endl;
    cout << '.' << endl;
    
    
    if (Packages == 0)
    if (Packages == 0)
-      return _error->Warning("No valid records were found.");
-   
+      _error->Warning("No valid records were found.");
+
    if (NotFound + WrongSize > 10)
    if (NotFound + WrongSize > 10)
       cout << "Alot of entries were discarded, something may be wrong." << endl;
       cout << "Alot of entries were discarded, something may be wrong." << endl;