opkg.c moving the sig_file_name into the section of HAVE_GPGME
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 15 Dec 2008 05:21:12 +0000 (05:21 +0000)
committerticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 15 Dec 2008 05:21:12 +0000 (05:21 +0000)
git-svn-id: http://opkg.googlecode.com/svn/trunk@127 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

libopkg/opkg.c

index 8ff8075..69dba4e 100644 (file)
@@ -750,7 +750,7 @@ opkg_update_package_lists (opkg_t *opkg, opkg_progress_callback_t progress_callb
 
   for (iter = opkg->conf->pkg_src_list.head; iter; iter = iter->next)
   {
-    char *url, *list_file_name = NULL, *sig_file_name = NULL;
+    char *url, *list_file_name = NULL;
 
     src = iter->data;
 
@@ -808,6 +808,7 @@ opkg_update_package_lists (opkg_t *opkg, opkg_progress_callback_t progress_callb
     free (url);
 
 #ifdef HAVE_GPGME
+    char *sig_file_name;
     /* download detached signitures to verify the package lists */
     /* get the url for the sig file */
     if (src->extra_data)  /* debian style? */