From: Michael Vogt <michael.vogt@ubuntu.com>
Date: Sat, 22 Oct 2005 21:48:27 +0000 (+0000)
Subject: * revert patch from patch-59, causes all sorts of trouble
X-Git-Tag: 0.7.21~354^2~1
X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/960d4d245dfecab6fd41ab82b59b2e10c0a40946?hp=--cc

* revert patch from patch-59, causes all sorts of trouble
---

960d4d245dfecab6fd41ab82b59b2e10c0a40946
diff --git a/apt-pkg/pkgrecords.cc b/apt-pkg/pkgrecords.cc
index 1d71d3e2f..9c2655d6a 100644
--- a/apt-pkg/pkgrecords.cc
+++ b/apt-pkg/pkgrecords.cc
@@ -42,9 +42,6 @@ pkgRecords::pkgRecords(pkgCache &Cache) : Cache(Cache), Files(0)
       if (Files[I->ID] == 0)
 	 return;
    }   
-   // We store that to make sure that the destructor won't segfault,
-   // even if the Cache object was destructed before this instance.
-   PackageFileCount = Cache.HeaderP->PackageFileCount;
 }
 									/*}}}*/
 // Records::~pkgRecords - Destructor					/*{{{*/
@@ -52,7 +49,7 @@ pkgRecords::pkgRecords(pkgCache &Cache) : Cache(Cache), Files(0)
 /* */
 pkgRecords::~pkgRecords()
 {
-   for (unsigned I = 0; I != PackageFileCount; I++)
+   for (unsigned I = 0; I != Cache.HeaderP->PackageFileCount; I++)
       delete Files[I];
    delete [] Files;
 }
diff --git a/apt-pkg/pkgrecords.h b/apt-pkg/pkgrecords.h
index f31e83afe..08f004414 100644
--- a/apt-pkg/pkgrecords.h
+++ b/apt-pkg/pkgrecords.h
@@ -33,7 +33,6 @@ class pkgRecords
    
    pkgCache &Cache;
    Parser **Files;
-   int PackageFileCount;
       
    public:
 
diff --git a/debian/changelog b/debian/changelog
index 090f1f843..3bbbf3b29 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,12 @@
-apt (0.6.43) unstable; urgency=low
+apt (0.6.42.1) unstable; urgency=low
 
   * fix a incorrect example in the apt_prefrences man page
     (thanks to Filipus Klutiero, closes: #282918)
+  * apt-pkg/pkgrecords.cc:
+    - revert patch from last version, it causes trouble on alpha 
+      and ia64 (closes: #335102, #335103,#335213)
 
- -- Michael Vogt <michael.vogt@ubuntu.com>  Fri, 21 Oct 2005 11:23:42 +0200
+ -- Michael Vogt <mvo@debian.org>  Sat, 22 Oct 2005 23:44:35 +0200
 
 apt (0.6.42) unstable; urgency=low