Apply apt-0.5.15lorg2-alt-pkgCache-PrvIterator.patch
Added in commit 6b8849f
:
apt-pkg/cacheiterators.h(pkgCache::PrvIterator): Add default constructor, required for aptitude 0.4.1 (Raorn, #9604).
This commit is contained in:
parent
204050e6d5
commit
3fb1186bee
@ -1,16 +0,0 @@
|
|||||||
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)
|
|
||||||
{
|
|
@ -258,6 +258,8 @@ class pkgCache::PrvIterator
|
|||||||
inline PkgIterator OwnerPkg() {return PkgIterator(*Owner,Owner->PkgP + Owner->VerP[Prv->Version].ParentPkg);};
|
inline PkgIterator OwnerPkg() {return PkgIterator(*Owner,Owner->PkgP + Owner->VerP[Prv->Version].ParentPkg);};
|
||||||
inline unsigned long Index() const {return Prv - Owner->ProvideP;};
|
inline unsigned long Index() const {return Prv - Owner->ProvideP;};
|
||||||
|
|
||||||
|
inline PrvIterator() : Prv(0), Type(PrvVer), Owner(0) {};
|
||||||
|
|
||||||
inline PrvIterator(pkgCache &Owner,Provides *Trg,Version *) :
|
inline PrvIterator(pkgCache &Owner,Provides *Trg,Version *) :
|
||||||
Prv(Trg), Type(PrvVer), Owner(&Owner)
|
Prv(Trg), Type(PrvVer), Owner(&Owner)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user