summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpixdamix <pixdamix@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-10-28 06:05:48 (EDT)
committer pixdamix <pixdamix@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-10-28 06:05:48 (EDT)
commita1fc2ffe4491e0df37bb173e0d452c3b2b3ec498 (patch)
tree05c5d6a7045145b10d957f0b54e10585eb199add
parent53a42ce9e6cd906013c8d478751f496f2b367e5f (diff)
Add error messages in case of signature error
git-svn-id: http://opkg.googlecode.com/svn/trunk@225 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-rw-r--r--libopkg/opkg_install.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libopkg/opkg_install.c b/libopkg/opkg_install.c
index 1bcaf25..8ced15a 100644
--- a/libopkg/opkg_install.c
+++ b/libopkg/opkg_install.c
@@ -852,9 +852,14 @@ int opkg_install_pkg(opkg_conf_t *conf, pkg_t *pkg, int from_upgrade)
if (file_exists (sig_file_name))
{
- if (opkg_verify_file (conf, list_file_name, sig_file_name))
+ if (opkg_verify_file (conf, list_file_name, sig_file_name)){
+ opkg_message(conf, OPKG_ERROR, "Failed to verify the signature of: %s\n",
+ list_file_name);
return OPKG_INSTALL_ERR_SIGNATURE;
+ }
}else{
+ opkg_message(conf, OPKG_ERROR, "Signature file is missing. "
+ "Perhaps you need to run 'opkg update'?\n");
return OPKG_INSTALL_ERR_SIGNATURE;
}