summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
fe9a05d)
This just changes the DoSearch code to use DisplayRecord to
display the record when the full record is requested.
Closes: #660851
[jak@debian.org: Wrote the commit message]
struct ExDescFile
{
pkgCache::DescFile *Df;
struct ExDescFile
{
pkgCache::DescFile *Df;
+ pkgCache::VerIterator V;
if (D.end() == true)
continue;
DFList[G->ID].Df = D.FileList();
if (D.end() == true)
continue;
DFList[G->ID].Df = D.FileList();
DFList[G->ID].ID = G->ID;
}
DFList[G->ID].ID = G->ID;
}
if (D.end() == true)
continue;
DFList[id].Df = D.FileList();
if (D.end() == true)
continue;
DFList[id].Df = D.FileList();
DFList[id].ID = id;
size_t const PrvPatternOffset = id * NumPatterns;
DFList[id].ID = id;
size_t const PrvPatternOffset = id * NumPatterns;
if (matchedAll == true)
{
if (ShowFull == true)
if (matchedAll == true)
{
if (ShowFull == true)
- {
- const char *Start;
- const char *End;
- P.GetRec(Start,End);
- fwrite(Start,End-Start,1,stdout);
- putc('\n',stdout);
- }
+ DisplayRecord(CacheFile, J->V);
else
printf("%s - %s\n",P.Name().c_str(),P.ShortDesc().c_str());
}
else
printf("%s - %s\n",P.Name().c_str(),P.ShortDesc().c_str());
}