From ec2f883f3b16b23ca35a586fab8678ff3faa5a84 Mon Sep 17 00:00:00 2001 From: Derek Macias Date: Tue, 23 Feb 2016 09:08:42 -0700 Subject: [PATCH] change package search to partial match --- .../usr/local/emhttp/plugins/NerdPack/include/PackageQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/NerdPack/usr/local/emhttp/plugins/NerdPack/include/PackageQuery.php b/source/NerdPack/usr/local/emhttp/plugins/NerdPack/include/PackageQuery.php index 4324de1b..58395840 100644 --- a/source/NerdPack/usr/local/emhttp/plugins/NerdPack/include/PackageQuery.php +++ b/source/NerdPack/usr/local/emhttp/plugins/NerdPack/include/PackageQuery.php @@ -28,7 +28,7 @@ foreach ($pkgs_github_array as $pkg_github) { $pkg_pattern = '/^'.$pkg_name.'.*/'; // search patter for packages $plugins = []; - exec("cd /boot/config/plugins ; find *.plg | xargs grep '${pkg_github['name']}' -sl",$plugins); + exec("cd /boot/config/plugins ; find *.plg | xargs grep '${pkg_name}-${pkg_version}' -sl",$plugins); $pkg_plgs = '--'; if ($plugins){ foreach ($plugins as $plugin){