Просмотр исходного кода

* make apt-cache madion wotk without deb-src lines

Michael Vogt лет назад: 20
Родитель
Сommit
03cd434bba
2 измененных файлов с 4 добавлено и 2 удалено
  1. 3 2
      cmdline/apt-cache.cc
  2. 1 0
      debian/changelog

+ 3 - 2
cmdline/apt-cache.cc

@@ -1574,10 +1574,11 @@ bool Madison(CommandLine &CmdL)
 
    pkgCache &Cache = *GCache;
 
-   // Create the text record parsers
+   // Create the src text record parsers and ignore errors about missing
+   // deb-src lines that are generated from pkgSrcRecords::pkgSrcRecords
    pkgSrcRecords SrcRecs(*SrcList);
    if (_error->PendingError() == true)
-      return false;
+      _error->Discard();
 
    for (const char **I = CmdL.FileList + 1; *I != 0; I++)
    {

+ 1 - 0
debian/changelog

@@ -27,6 +27,7 @@ apt (0.6.43.3) unstable; urgency=low
     - don't lock the lists directory in DoInstall, breaks --print-uri 
       (thanks to James Troup for reporting it)
   * debian/apt.dirs: create /etc/apt/sources.list.d 
+  * make apt-cache madison work without deb-src entries (#352583)
 
  --