Просмотр исходного кода

Dans segfault
Author: jgg
Date: 2001-03-03 23:12:07 GMT
Dans segfault

Arch Librarian лет назад: 22
Родитель
Сommit
c82ffeb66a
2 измененных файлов с 4 добавлено и 3 удалено
  1. 3 3
      cmdline/apt-get.cc
  2. 1 0
      debian/changelog

+ 3 - 3
cmdline/apt-get.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
 // Description								/*{{{*/
-// $Id: apt-get.cc,v 1.102 2001/02/27 02:51:03 tausq Exp $
+// $Id: apt-get.cc,v 1.103 2001/03/03 23:12:07 jgg Exp $
 /* ######################################################################
 /* ######################################################################
    
    
    apt-get - Cover for dpkg
    apt-get - Cover for dpkg
@@ -930,8 +930,8 @@ bool TryToInstall(pkgCache::PkgIterator Pkg,pkgDepCache &Cache,
 	   "of sources.list\n"),Pkg.Name());
 	   "of sources.list\n"),Pkg.Name());
 	 
 	 
 	 string List;
 	 string List;
-	 SPtrArray<bool> Seen = new bool[Cache.Head().PackageFileCount];
-	 memset(Seen,0,Cache.Head().PackageFileCount*sizeof(*Seen));
+	 SPtrArray<bool> Seen = new bool[Cache.Head().PackageCount];
+	 memset(Seen,0,Cache.Head().PackageCount*sizeof(*Seen));
 	 pkgCache::DepIterator Dep = Pkg.RevDependsList();
 	 pkgCache::DepIterator Dep = Pkg.RevDependsList();
 	 for (; Dep.end() == false; Dep++)
 	 for (; Dep.end() == false; Dep++)
 	 {
 	 {

+ 1 - 0
debian/changelog

@@ -14,6 +14,7 @@ apt (0.5.1) unstable; urgency=low
   * Updated soname version to 0.3.2
   * Updated soname version to 0.3.2
   * apt-extracttemplates moved from debconf into apt-utils
   * apt-extracttemplates moved from debconf into apt-utils
   * s390 archtable entry. Closes: #88232
   * s390 archtable entry. Closes: #88232
+  * Dan's segfault
   
   
  -- Jason Gunthorpe <jgg@debian.org>  Thu, 22 Feb 2001 00:39:15 -0500
  -- Jason Gunthorpe <jgg@debian.org>  Thu, 22 Feb 2001 00:39:15 -0500