diff --git a/apt-0.5.15lorg2-alt-pkgCache-PrvIterator.patch b/apt-0.5.15lorg2-alt-pkgCache-PrvIterator.patch new file mode 100644 index 0000000..ada0b0d --- /dev/null +++ b/apt-0.5.15lorg2-alt-pkgCache-PrvIterator.patch @@ -0,0 +1,16 @@ +2006-05-23 Sir Raorn + + * 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) + { diff --git a/apt.spec b/apt.spec index 94293c4..7be166d 100644 --- a/apt.spec +++ b/apt.spec @@ -56,6 +56,7 @@ Patch42: apt-0.5.15cnc6-alt-PrintLocalFile.patch Patch43: apt-0.5.15cnc6-apt-utils-locale.patch Patch44: apt-0.5.15lorg2-alt-apt-shell-resetconfig.patch Patch45: apt-0.5.15lorg2-alt-pkgInitConfig-cpu.patch +Patch46: apt-0.5.15lorg2-alt-pkgCache-PrvIterator.patch # Normally not applied, but useful. Patch101: apt-0.5.4cnc9-alt-getsrc-debug.patch @@ -256,6 +257,7 @@ This package contains method 'rsync' for APT. %patch43 -p1 %patch44 -p1 %patch45 -p1 +%patch46 -p1 find -type f -name \*.orig -delete -print