r4209 - trunk/src/target/opkg/libopkg

thomas at sita.openmoko.org thomas at sita.openmoko.org
Fri Mar 14 16:10:47 CET 2008


Author: thomas
Date: 2008-03-14 16:10:46 +0100 (Fri, 14 Mar 2008)
New Revision: 4209

Modified:
   trunk/src/target/opkg/libopkg/opkg_cmd.c
Log:
opkg: skip downloading Packages.sig if GPGME is not enabled at build time


Modified: trunk/src/target/opkg/libopkg/opkg_cmd.c
===================================================================
--- trunk/src/target/opkg/libopkg/opkg_cmd.c	2008-03-14 14:22:08 UTC (rev 4208)
+++ trunk/src/target/opkg/libopkg/opkg_cmd.c	2008-03-14 15:10:46 UTC (rev 4209)
@@ -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, "Signiture check for %s skipped "
+              "because GPG support was not enabled in this build\n", src->name);
+#endif
 	  free(list_file_name);
      }
      rmdir (tmp);





More information about the commitlog mailing list