* merge fix for #339533
authorMichael Vogt <michael.vogt@ubuntu.com>
Mon, 21 Nov 2005 14:33:21 +0000 (14:33 +0000)
committerMichael Vogt <michael.vogt@ubuntu.com>
Mon, 21 Nov 2005 14:33:21 +0000 (14:33 +0000)
apt-pkg/cacheiterators.h
debian/changelog

index c3a0d0a..2b326bd 100644 (file)
@@ -107,7 +107,7 @@ class pkgCache::VerIterator
    // Iteration
    void operator ++(int) {if (Ver != Owner->VerP) Ver = Owner->VerP + Ver->NextVer;};
    inline void operator ++() {operator ++(0);};
-   inline bool end() const {return Ver == Owner->VerP?true:false;};
+   inline bool end() const {return Owner == NULL || (Ver == Owner->VerP?true:false);};
    inline void operator =(const VerIterator &B) {Ver = B.Ver; Owner = B.Owner;};
    
    // Comparison
index 9115faa..7399b69 100644 (file)
@@ -6,6 +6,8 @@ apt (0.6.42.4) unstable; urgency=low
   * added support for "/etc/apt/sources.list.d" directory 
     (closes: #66325)
   * make pkgDirStream (a bit) more complete
+  * fix bug in pkgCache::VerIterator::end() (thanks to Daniel Burrows)
+    (closes: #339533)
   
  --