cli: implement --force-signature
[oweals/opkg-lede.git] / libopkg / opkg_cmd.c
index c30e34dc226c8c397bc5c8bb9c33a5a85986dc30..04716fca626a6bf195ff423350e63b730a80922a 100644 (file)
@@ -196,7 +196,7 @@ opkg_update_cmd(int argc, char **argv)
                   else
                       opkg_msg(NOTICE, "Signature check failed.\n");
               }
-              if (err) {
+              if (err && !conf->force_signature) {
                   /* The signature was wrong so delete it */
                   opkg_msg(NOTICE, "Remove wrong Signature file.\n");
                   unlink (tmp_file_name);