summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-02-13 15:48:25 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2006-02-13 15:48:25 +0000
commit03cd434bba10c0087f633e5741a585ba7292451b (patch)
tree18376aa3c7dfa5d5e5ed13f83547710e9fa450ad
parentfe5d48773170773390b4b8ce731d2851d703a412 (diff)
* make apt-cache madion wotk without deb-src lines
-rw-r--r--cmdline/apt-cache.cc5
-rw-r--r--debian/changelog1
2 files changed, 4 insertions, 2 deletions
diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc
index 0014563b8..aea9ebeba 100644
--- a/cmdline/apt-cache.cc
+++ b/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++)
{
diff --git a/debian/changelog b/debian/changelog
index f4a8aaca0..7042906d2 100644
--- a/debian/changelog
+++ b/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)
--