apt-pkg/cacheiterators.h(pkgCache::PrvIterator): Add default constructor, required for aptitude 0.4.1 (Raorn, #9604).

This commit is contained in:
Дмитрий Левин 2006-10-05 14:24:32 +00:00
parent 1c5bf91a4b
commit 6b8849f508
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,16 @@
2006-05-23 Sir Raorn <raorn@altlinux.org>
* apt-pkg/cacheiterators.h(pkgCache::PrvIterator): Add default
constructor, required for aptitude 0.4.1
--- apt-0.5.15lorg2.orig/apt-pkg/cacheiterators.h 2006-01-16 23:10:47 +0000
+++ apt-0.5.15lorg2/apt-pkg/cacheiterators.h 2006-05-23 05:44:07 +0000
@@ -258,6 +258,8 @@
inline PkgIterator OwnerPkg() {return PkgIterator(*Owner,Owner->PkgP + Owner->VerP[Prv->Version].ParentPkg);};
inline unsigned long Index() const {return Prv - Owner->ProvideP;};
+ inline PrvIterator() : Prv(0), Type(PrvVer), Owner(0) {};
+
inline PrvIterator(pkgCache &Owner,Provides *Trg,Version *) :
Prv(Trg), Type(PrvVer), Owner(&Owner)
{

View File

@ -56,6 +56,7 @@ Patch42: apt-0.5.15cnc6-alt-PrintLocalFile.patch
Patch43: apt-0.5.15cnc6-apt-utils-locale.patch Patch43: apt-0.5.15cnc6-apt-utils-locale.patch
Patch44: apt-0.5.15lorg2-alt-apt-shell-resetconfig.patch Patch44: apt-0.5.15lorg2-alt-apt-shell-resetconfig.patch
Patch45: apt-0.5.15lorg2-alt-pkgInitConfig-cpu.patch Patch45: apt-0.5.15lorg2-alt-pkgInitConfig-cpu.patch
Patch46: apt-0.5.15lorg2-alt-pkgCache-PrvIterator.patch
# Normally not applied, but useful. # Normally not applied, but useful.
Patch101: apt-0.5.4cnc9-alt-getsrc-debug.patch Patch101: apt-0.5.4cnc9-alt-getsrc-debug.patch
@ -256,6 +257,7 @@ This package contains method 'rsync' for APT.
%patch43 -p1 %patch43 -p1
%patch44 -p1 %patch44 -p1
%patch45 -p1 %patch45 -p1
%patch46 -p1
find -type f -name \*.orig -delete -print find -type f -name \*.orig -delete -print