opkg: allow to configure the path to the signature verification script
[project/opkg-lede.git] / libopkg / opkg_download.c
index e9705065aa76e85c63f7c6eef3223638ce313415..7bbf34b9a4def7a2262cd8f0c6649480d6b4704e 100644 (file)
@@ -298,7 +298,7 @@ int opkg_prepare_url_for_install(const char *url, char **namep)
 int opkg_verify_file(char *text_file, char *sig_file)
 {
 #if defined HAVE_USIGN
-       const char *argv[] = { "/usr/sbin/opkg-key", "verify", sig_file,
+       const char *argv[] = { conf->verify_program, "verify", sig_file,
                               text_file, NULL };
 
        return xsystem(argv) ? -1 : 0;