opkg: improve download error reporting
[oweals/opkg-lede.git] / opkg_cmd.c
index 20d38720edb5323c9c0aad549ceb502b812e5685..db04a4a680fbd8ace0e114bfa681febf8d01d9eb 100644 (file)
@@ -287,6 +287,7 @@ static int opkg_update_cmd(opkg_conf_t *conf, int argc, char **argv)
          err = opkg_download(conf, url, tmp_file_name);
          if (err) {
            failures++;
+               opkg_message (conf, OPKG_NOTICE, "Signature check failed\n");
          } else {
            int err;
            err = opkg_verify_file (list_file_name, tmp_file_name);
@@ -296,6 +297,7 @@ static int opkg_update_cmd(opkg_conf_t *conf, int argc, char **argv)
                opkg_message (conf, OPKG_NOTICE, "Signature check failed\n");
          }
          unlink (tmp_file_name);
+         unlink (tmp);
          free (tmp_file_name);
 
          free (url);