[PATCH] Do not fetch signatures if no GPGME

Thomas Wood thomas at openedhand.com
Fri Mar 14 15:38:35 CET 2008


On Fri, 2008-03-14 at 12:00 +0000, Thomas Wood wrote:
[...]
> Could you check the attached patch solves your problem?

Oops, that patch was broken. Here's one I've actually tested:


Index: opkg_cmd.c
===================================================================
--- opkg_cmd.c	(revision 4206)
+++ opkg_cmd.c	(working copy)
@@ -257,6 +257,7 @@
 	  }
 	  free(url);
 
+#ifdef HAVE_GPGME
 	  /* download detached signitures to verify the package lists */
 	  /* get the url for the sig file */
 	  if (src->extra_data)	/* debian style? */
@@ -284,8 +285,11 @@
 	  }
 	  unlink (tmp_file_name);
 	  free (tmp_file_name);
-
 	  free (url);
+#else
+	  opkg_message (conf, OPKG_NOTICE, "Packages.sig check skipped because "
+              "GPG support was not enabled in this build\n");
+#endif
 	  free(list_file_name);
      }
      rmdir (tmp);





-- 
OpenedHand Ltd.

Unit R Homesdale Business Center / 216-218 Homesdale Road /
Bromley / BR1 2QZ / UK             Tel: +44 (0)20 8819 6559

Expert Open Source For Consumer Devices - http://o-hand.com/
------------------------------------------------------------





More information about the opkg-devel mailing list