X-Git-Url: https://git.librecmc.org/?p=oweals%2Fopkg-lede.git;a=blobdiff_plain;f=libopkg%2Fopkg_cmd.c;h=463b15d49f5081117c622ea57fad35e70bd4175a;hp=ea815ec7d47a71053cc134a045f6f6440a344b76;hb=349953207b609b8019c348ba326671c07035846b;hpb=323ba93afe050c56c6047f3a4c4f735402b09c78 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);