diff options
author | ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2008-12-15 00:01:47 (EST) |
---|---|---|
committer | ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2008-12-15 00:01:47 (EST) |
commit | 349953207b609b8019c348ba326671c07035846b (patch) | |
tree | e6a5e143effdef3abe76342be6b43daa216a3be1 /libopkg | |
parent | 323ba93afe050c56c6047f3a4c4f735402b09c78 (diff) |
opkg: skip downloading Packages.sig if GPGME is not enabled at build time
git-svn-id: http://opkg.googlecode.com/svn/trunk@55 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg')
-rw-r--r-- | libopkg/opkg_cmd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libopkg/opkg_cmd.c b/libopkg/opkg_cmd.c index ea815ec..463b15d 100644 --- a/libopkg/opkg_cmd.c +++ b/libopkg/opkg_cmd.c @@ -257,6 +257,7 @@ static int opkg_update_cmd(opkg_conf_t *conf, int argc, char **argv) } 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 @@ static int opkg_update_cmd(opkg_conf_t *conf, int argc, char **argv) } 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); |