summaryrefslogtreecommitdiffstats
path: root/libopkg/opkg_install.c
diff options
context:
space:
mode:
Diffstat (limited to 'libopkg/opkg_install.c')
-rw-r--r--libopkg/opkg_install.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libopkg/opkg_install.c b/libopkg/opkg_install.c
index 750ea65..1bcaf25 100644
--- a/libopkg/opkg_install.c
+++ b/libopkg/opkg_install.c
@@ -837,7 +837,7 @@ int opkg_install_pkg(opkg_conf_t *conf, pkg_t *pkg, int from_upgrade)
}
/* check that the repository is valid */
- #if HAVE_GPGME
+ #if defined(HAVE_GPGME) || defined(HAVE_OPENSSL)
char *list_file_name, *sig_file_name, *lists_dir;
/* check to ensure the package has come from a repository */
@@ -854,6 +854,8 @@ int opkg_install_pkg(opkg_conf_t *conf, pkg_t *pkg, int from_upgrade)
{
if (opkg_verify_file (conf, list_file_name, sig_file_name))
return OPKG_INSTALL_ERR_SIGNATURE;
+ }else{
+ return OPKG_INSTALL_ERR_SIGNATURE;
}
free (lists_dir);