summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-01-08 12:15:11 +0100
committerJulian Andres Klode <jak@debian.org>2016-01-08 12:23:08 +0100
commit24c7db2edea692c3778c021c053a2316203bfa03 (patch)
treee38516761593d43762fb389451c3f2f6a6042e0c /apt-pkg
parent0cc8987abf9f25c458833a0479bc4cb11b405e16 (diff)
downloadapt-24c7db2edea692c3778c021c053a2316203bfa03.tar.gz
pkgCacheGenerator: CurMd5.Value() cannot be empty
It makes no sense to check if the value is empty, as it cannot be. It will always be a hexstring of exactly 32 bytes.
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/pkgcachegen.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/apt-pkg/pkgcachegen.cc b/apt-pkg/pkgcachegen.cc
index 79d633cb7..80392ff45 100644
--- a/apt-pkg/pkgcachegen.cc
+++ b/apt-pkg/pkgcachegen.cc
@@ -308,8 +308,6 @@ bool pkgCacheGenerator::MergeListPackage(ListParser &List, pkgCache::PkgIterator
// Find the right version to write the description
MD5SumValue CurMd5 = List.Description_md5();
- if (CurMd5.Value().empty() == true && List.Description("").empty() == true)
- return true;
std::vector<std::string> availDesc = List.AvailableDescriptionLanguages();
for (Ver = Pkg.VersionList(); Ver.end() == false; ++Ver)
{
@@ -444,8 +442,6 @@ bool pkgCacheGenerator::MergeListVersion(ListParser &List, pkgCache::PkgIterator
/* Record the Description(s) based on their master md5sum */
MD5SumValue CurMd5 = List.Description_md5();
- if (CurMd5.Value().empty() == true && List.Description("").empty() == true)
- return true;
/* Before we add a new description we first search in the group for
a version with a description of the same MD5 - if so we reuse this