]> git.saurik.com Git - apt.git/blobdiff - apt-private/private-search.cc
CMake: Translations: Allow excluding languages from translation
[apt.git] / apt-private / private-search.cc
index 0728b26c8f5aa579321f7eca58828b37b7bcbd24..bae04173d9f70302478d40876c54f99e2979b712 100644 (file)
@@ -91,8 +91,12 @@ static bool FullTextSearch(CommandLine &CmdL)                                /*{{{*/
 
       char const * const PkgName = P.Name();
       pkgCache::DescIterator Desc = V.TranslatedDescription();
-      pkgRecords::Parser &parser = records.Lookup(Desc.FileList());
-      std::string const LongDesc = parser.LongDesc();
+      std::string LongDesc = "";
+      if (Desc.end() == false)
+      {
+        pkgRecords::Parser &parser = records.Lookup(Desc.FileList());
+        LongDesc = parser.LongDesc();
+      }
 
       bool all_found = true;
       for (std::vector<regex_t>::const_iterator pattern = Patterns.begin();