formatting, filter md5

This commit is contained in:
dmacias72 2016-10-08 14:45:37 -06:00
parent 0b5ac0e685
commit f674f79ee7

View File

@ -15,6 +15,9 @@ $pkgs_array = [];
foreach ($pkgs_github_array as $pkg_github) {
$pkg_nameArray = explode('-', $pkg_github['name']); // split package name into array
// strip md5 files
if(!strpos(end($pkg_nameArray),'.md5')) {
$pkg_name = $pkg_nameArray[0];
if (sizeof($pkg_nameArray) > 4) { //if package name has a subset get it
@ -27,7 +30,7 @@ foreach ($pkgs_github_array as $pkg_github) {
$pkg_nver = $pkg_name.'-'.str_replace('.', '_', $pkg_version); // add underscored version to package name
$pkg_pattern = '/^'.$pkg_name.'.*/'; // search pattern for packages
$pkg_pattern = '/^'.$pkg_name.'-.*/'; // search pattern for packages
// check all plugins for package dependency
$plugins = [];
@ -68,6 +71,7 @@ foreach ($pkgs_github_array as $pkg_github) {
$pkgs_array[] = $pkg;
}
}
$return = [
'packages' => $pkgs_array,