projects
/
oweals
/
opkg-lede.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add error messages in case of signature error
[oweals/opkg-lede.git]
/
libopkg
/
opkg_install.c
diff --git
a/libopkg/opkg_install.c
b/libopkg/opkg_install.c
index 1bcaf2545126b129fc4231dc569c9a6254398c2b..8ced15aa36222a323726a2735909d2589e5cf144 100644
(file)
--- 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 (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;
return OPKG_INSTALL_ERR_SIGNATURE;
+ }
}else{
}else{
+ opkg_message(conf, OPKG_ERROR, "Signature file is missing. "
+ "Perhaps you need to run 'opkg update'?\n");
return OPKG_INSTALL_ERR_SIGNATURE;
}
return OPKG_INSTALL_ERR_SIGNATURE;
}