]> git.saurik.com Git - apt.git/blobdiff - apt-private/private-cachefile.cc
check for available space, excluding root reserved blocks
[apt.git] / apt-private / private-cachefile.cc
index 5e955ac395b2187138675df80ac6f3303702cd54..29e665245f5544065cb9bfc3718e93f33ba2cc32 100644 (file)
@@ -32,8 +32,10 @@ int CacheFile::NameComp(const void *a,const void *b)
    
    const pkgCache::Package &A = **(pkgCache::Package **)a;
    const pkgCache::Package &B = **(pkgCache::Package **)b;
+   const pkgCache::Group * const GA = SortCache->GrpP + A.Group;
+   const pkgCache::Group * const GB = SortCache->GrpP + B.Group;
 
-   return strcmp(SortCache->StrP + A.Name,SortCache->StrP + B.Name);
+   return strcmp(SortCache->StrP + GA->Name,SortCache->StrP + GB->Name);
 }
                                                                        /*}}}*/
 // CacheFile::Sort - Sort by name                                      /*{{{*/