[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#296103: Workaround patch



package apt
tags 296103 +patch
thanks

Seeing that the bus is a problem with external data, apt can't really do much more
than improving its error message. I propose the following patch.

-------------------------------------------------------------------------------
diff -ru apt-0.6.44.2/methods/gpgv.cc apt-0.6.44.2.orig/methods/gpgv.cc
--- apt-0.6.44.2/methods/gpgv.cc        2006-05-08 11:39:36.000000000 -0500
+++ apt-0.6.44.2.orig/methods/gpgv.cc   2006-07-01 01:51:28.000000000 -0500
@@ -17,6 +17,7 @@
 #define GNUPGBADSIG "[GNUPG:] BADSIG"
 #define GNUPGNOPUBKEY "[GNUPG:] NO_PUBKEY"
 #define GNUPGVALIDSIG "[GNUPG:] VALIDSIG"
+#define GNUPGNODATA "[GNUPG:] NODATA"

 class GPGVMethod : public pkgAcqMethod
 {
@@ -165,6 +166,13 @@
          BadSigners.push_back(string(buffer+sizeof(GNUPGPREFIX)));
       }

+      if (strncmp(buffer, GNUPGNODATA, sizeof(GNUPGBADSIG)-1) == 0)
+      {
+         if (_config->FindB("Debug::Acquire::gpgv", false))
+            std::cerr << "Got NODATA! " << std::endl;
+         BadSigners.push_back(string(buffer+sizeof(GNUPGPREFIX)));
+      }
+
       if (strncmp(buffer, GNUPGNOPUBKEY, sizeof(GNUPGNOPUBKEY)-1) == 0)
       {
          if (_config->FindB("Debug::Acquire::gpgv", false))
------------------------------------------------------------------------------

-- 
Rodrigo Gallardo



Reply to: