diff options
Diffstat (limited to 'apt-pkg/deb/deblistparser.cc')
-rw-r--r-- | apt-pkg/deb/deblistparser.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apt-pkg/deb/deblistparser.cc b/apt-pkg/deb/deblistparser.cc index 75fc2d242..88b41ad30 100644 --- a/apt-pkg/deb/deblistparser.cc +++ b/apt-pkg/deb/deblistparser.cc @@ -211,9 +211,12 @@ bool debListParser::NewVersion(pkgCache::VerIterator &Ver) } if (V.end() == true) { - map_stringitem_t const idx = StoreString(pkgCacheGenerator::PKGNAME, pkgname); + pkgCache::GrpIterator SG; + if (not NewGroup(SG, pkgname)) + return false; + G = Ver.ParentPkg().Group(); - Ver->SourcePkgName = idx; + Ver->SourcePkgName = SG->Name; } } } |