]> git.saurik.com Git - apt.git/commitdiff
save the universe by not printing messages about apport if a package
authorDavid Kalnischkies <kalnischkies@gmail.com>
Sat, 11 Feb 2012 20:01:35 +0000 (21:01 +0100)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Sat, 11 Feb 2012 20:01:35 +0000 (21:01 +0100)
with this name is not installed (Closes: #619646)

apt-pkg/deb/dpkgpm.cc
debian/changelog

index 3f9e68210a8d2d69b70305f95e73cb42583a815d..499c3db8a5b0c2f35900f8e59cd5191d51838f7f 100644 (file)
@@ -1446,6 +1446,12 @@ void pkgDPkgPM::Reset()
 /* */
 void pkgDPkgPM::WriteApportReport(const char *pkgpath, const char *errormsg) 
 {
+   // If apport doesn't exist or isn't installed do nothing
+   // This e.g. prevents messages in 'universes' without apport
+   pkgCache::PkgIterator apportPkg = Cache.FindPkg("apport");
+   if (apportPkg.end() == true || apportPkg->CurrentVer == 0)
+      return;
+
    string pkgname, reportfile, srcpkgname, pkgver, arch;
    string::size_type pos;
    FILE *report;
index d1a3354d06669d044a24e8c9641ec7fa74c3af3c..8e66fd2fd3c44d84170780d7d573a2e88bc33e4c 100644 (file)
@@ -5,6 +5,8 @@ apt (0.8.16~exp13) UNRELEASED; urgency=low
     - chroot if needed before dpkg --assert-multi-arch
     - ensure that dpkg binary doesn't have the chroot-directory prefixed
     - call dpkg --assert-multi-arch with execvp instead of execv
+    - save the universe by not printing messages about apport if a package
+      with this name is not installed (Closes: #619646)
   * apt-pkg/depcache.cc:
     - if a M-A:same package is marked for reinstall, mark all it's installed
       silbings for reinstallation as well (LP: #859188)
@@ -42,7 +44,7 @@ apt (0.8.16~exp13) UNRELEASED; urgency=low
   * apt-pkg/contrib/fileutl.h:
     - fix compat with FileFd::OpenDescriptor() in ReadOnlyGzip mode
 
- -- David Kalnischkies <kalnischkies@gmail.com>  Sat, 11 Feb 2012 18:54:11 +0100
+ -- David Kalnischkies <kalnischkies@gmail.com>  Sat, 11 Feb 2012 20:59:13 +0100
 
 apt (0.8.16~exp12) experimental; urgency=low