A turbulence.diff
git-svn-id: http://svn.telesphoreo.org/trunk@790
514c082c-b64e-11dc-b46d-
3d985efe055d
unsigned char InstState; // Flags
unsigned char CurrentState; // State
unsigned char InstState; // Flags
unsigned char CurrentState; // State
// Linked list
map_ptrloc NextFile; // PackageFile
// Linked list
map_ptrloc NextFile; // PackageFile
time_t mtime; // Modification time for the file
};
/*}}}*/
time_t mtime; // Modification time for the file
};
/*}}}*/
map_ptrloc Size; // These are the .deb size
map_ptrloc InstalledSize;
unsigned short Hash;
map_ptrloc Size; // These are the .deb size
map_ptrloc InstalledSize;
unsigned short Hash;
};
/*}}}*/
struct pkgCache::Description /*{{{*/
};
/*}}}*/
struct pkgCache::Description /*{{{*/
map_ptrloc NextDesc; // Description
map_ptrloc ParentPkg; // Package
map_ptrloc NextDesc; // Description
map_ptrloc ParentPkg; // Package
};
/*}}}*/
struct pkgCache::Dependency /*{{{*/
};
/*}}}*/
struct pkgCache::Dependency /*{{{*/
if (Cache.HeaderP->PackageCount >= (1ULL<<sizeof(Cache.PkgP->ID)*8)-1)
return _error->Error(_("Wow, you exceeded the number of package "
"names this APT is capable of."));
if (Cache.HeaderP->PackageCount >= (1ULL<<sizeof(Cache.PkgP->ID)*8)-1)
return _error->Error(_("Wow, you exceeded the number of package "
"names this APT is capable of."));
- if (Cache.HeaderP->VersionCount >= (1ULL<<(sizeof(Cache.VerP->ID)*8))-1)
+ if (Cache.HeaderP->VersionCount >= (1ULL<<(sizeof(Cache.VerP->ID1)*8+sizeof(Cache.VerP->ID2)*8))-1)
return _error->Error(_("Wow, you exceeded the number of versions "
"this APT is capable of."));
if (Cache.HeaderP->DescriptionCount >= (1ULL<<(sizeof(Cache.DescP->ID)*8))-1)
return _error->Error(_("Wow, you exceeded the number of versions "
"this APT is capable of."));
if (Cache.HeaderP->DescriptionCount >= (1ULL<<(sizeof(Cache.DescP->ID)*8))-1)
// Fill it in
Ver = pkgCache::VerIterator(Cache,Cache.VerP + Version);
Ver->NextVer = Next;
// Fill it in
Ver = pkgCache::VerIterator(Cache,Cache.VerP + Version);
Ver->NextVer = Next;
- Ver->ID = Cache.HeaderP->VersionCount++;
+ unsigned int ID = Cache.HeaderP->VersionCount++;
+ Ver->ID1 = ID & 0xffff;
+ Ver->ID2 = ID >> 16;
Ver->VerStr = Map.WriteString(VerStr.Start, VerStr.Size);
if (Ver->VerStr == 0)
return 0;
Ver->VerStr = Map.WriteString(VerStr.Start, VerStr.Size);
if (Ver->VerStr == 0)
return 0;