summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/deblistparser.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2020-01-09 09:55:30 +0000
committerJulian Andres Klode <jak@debian.org>2020-01-09 09:55:30 +0000
commitcfeae24843e8357c7e8d2ff3b23ee81cac330017 (patch)
tree9f3cb77cb9728d427c882274fe78dd2e0a090cca /apt-pkg/deb/deblistparser.cc
parent84176f6cde1fda522a3aad21d8238c7bd603da87 (diff)
parent6902792898a9fcc3bdff605e2097e6a5cd2d6bbc (diff)
Merge branch 'pu/source-groups' into 'master'
Avoid extra out-of-cache hash table deduplication for package names See merge request apt-team/apt!92
Diffstat (limited to 'apt-pkg/deb/deblistparser.cc')
-rw-r--r--apt-pkg/deb/deblistparser.cc7
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;
}
}
}